Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
linrrzqqq committed Nov 29, 2024
1 parent 9290081 commit e8333c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion be/src/common/elf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ const char* Elf::Section::name() const {
if (!elf.section_names) {
LOG(FATAL) << fmt::format("Section names are not initialized");
}

/// TODO buffer overflow is possible, we may need to check strlen.
return elf.section_names + header.sh_name;
}
Expand Down
3 changes: 2 additions & 1 deletion be/src/vec/exec/jni_connector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,8 @@ std::pair<std::string, std::string> JniConnector::parse_table_schema(Block* bloc
columns_types << type;
} else {
if (ignore_column_name) {
required_fields << "," << "_col_" << arguments[i];
required_fields << ","
<< "_col_" << arguments[i];
} else {
required_fields << "," << block->get_by_position(arguments[i]).name;
}
Expand Down

0 comments on commit e8333c3

Please sign in to comment.