Skip to content

Commit

Permalink
[Fix](load) Restrict the import of VARCHAR(0) data to avoid coredump
Browse files Browse the repository at this point in the history
  • Loading branch information
liaoxin01 committed Sep 18, 2024
1 parent ef519c7 commit b0bb700
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion be/src/vec/sink/vtablet_block_convertor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ Status OlapTableBlockConvertor::_internal_validate_column(
auto string_column_checker = [&](const ColumnString* column_string) {
size_t limit = config::string_type_length_soft_limit_bytes;
// when type.len is negative, std::min will return overflow value, so we need to check it
if (type.len > 0) {
if (type.len >= 0) {
limit = std::min(config::string_type_length_soft_limit_bytes, type.len);
}

Expand Down

0 comments on commit b0bb700

Please sign in to comment.