Skip to content

Commit

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

Signed-off-by: Binglin Chang <[email protected]>
  • Loading branch information
decster authored Oct 17, 2024
1 parent 0a91545 commit 5f10c07
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, Colum
}
}

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 5f10c07

Please sign in to comment.