提交 ae985635 编写于 作者: O obdev 提交者: wangzelin.wzl

[CP] Avoid out of boundery buffer accessing for obnumber logging

上级 c40f0fed
...@@ -499,7 +499,15 @@ int ObNumber::from_sci_(const char* str, const int64_t length, IAllocator& alloc ...@@ -499,7 +499,15 @@ int ObNumber::from_sci_(const char* str, const int64_t length, IAllocator& alloc
} }
} }
if (OB_SUCC(ret) || !is_oracle_mode()) { if (OB_SUCC(ret) || !is_oracle_mode()) {
LOG_DEBUG("Number from sci last ", K(cur), K(i), K(str + i), K(length), K(valid_len), K(ret), K(warning)); LOG_DEBUG("Number from sci last ",
K(cur),
K(i),
"str",
ObString(length, str),
K(length),
K(valid_len),
K(ret),
K(warning));
while (cur == ' ' && i < length - 1) { while (cur == ' ' && i < length - 1) {
cur = str[++i]; cur = str[++i];
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册