fix core: Observer crash due to incorrect assessment of allocated buffer in deserialization of ObDynamicSamplePieceMsg.

This commit is contained in:
obdev 2023-07-03 12:48:21 +00:00 committed by ob-robot
parent 1d691e0d14
commit e97d5f54bc

View File

@ -93,7 +93,7 @@ OB_DEF_DESERIALIZE(ObDynamicSamplePieceMsg)
}
} else {
void *tmp_buf = arena_.alloc(sizeof(ObChunkDatumStore));
if (OB_ISNULL(buf)) {
if (OB_ISNULL(tmp_buf)) {
ret = OB_ALLOCATE_MEMORY_FAILED;
LOG_WARN("allocate memory failed", K(ret));
} else {