fix 3-stage agg wrong result && fix aggr ignore error code && fix int_cell_str sanity core

This commit is contained in:
obdev
2023-01-10 08:49:25 +00:00
committed by ob-robot
parent eae5622880
commit c1e0bb4522
2 changed files with 5 additions and 3 deletions

View File

@ -363,7 +363,7 @@ int ObMySQLUtil::int_cell_str(
int64_t bytes_to_store_len = get_number_store_len(length);
if (OB_UNLIKELY(pos + bytes_to_store_len + ffi.length() > len)) {
ret = OB_SIZE_OVERFLOW;
} else if (zero_cnt > 0 && OB_UNLIKELY(pos + bytes_to_store_len + zero_cnt > len)) {
} else if (zero_cnt > 0 && OB_UNLIKELY(pos + bytes_to_store_len + zero_cnt + ffi.length() > len)) {
ret = OB_SIZE_OVERFLOW;
} else {
MEMCPY(buf + pos + bytes_to_store_len, ffi.ptr(), ffi.length());