Skip to content

Commit

Permalink
[BugFix] Prevent crash if type mismatch in BinaryDictPageDecoder (#52036
Browse files Browse the repository at this point in the history
)

Signed-off-by: Binglin Chang <[email protected]>
(cherry picked from commit 5f10c07)
  • Loading branch information
decster authored and mergify[bot] committed Oct 17, 2024
1 parent 3d50e33 commit 7963dd5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion be/src/storage/rowset/binary_dict_page.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,9 @@ Status BinaryDictPageDecoder<Type>::next_batch(const SparseRange& range, Column*
}
}

CHECK(dst->append_strings_overflow(slices, _max_value_legth));
bool ok = dst->append_strings_overflow(slices, _max_value_legth);
DCHECK(ok) << "append_strings_overflow failed";
RETURN_IF(!ok, Status::InternalError("BinaryDictPageDecoder::next_batch failed"));
return Status::OK();
}

Expand Down

0 comments on commit 7963dd5

Please sign in to comment.