Fix process_decrease bounds issue
This commit is contained in:
@ -848,8 +848,15 @@ int ObSortkeyConditioner::process_key_conditioning(
|
||||
if (ret != OB_BUF_NOT_ENOUGH) {
|
||||
LOG_WARN("failed to encode sortkey", K(ret));
|
||||
}
|
||||
} else if (max_buf_len < to_len) {
|
||||
ret = OB_BUF_NOT_ENOUGH;
|
||||
LOG_TRACE("no enough memory to do encoding for obnumber", K(ret));
|
||||
} else if (!param.is_asc_) {
|
||||
process_decrease(to + 1, to_len);
|
||||
if (param.is_nullable_) {
|
||||
process_decrease(to + 1, to_len - 1);
|
||||
} else {
|
||||
process_decrease(to, to_len);
|
||||
}
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user