Skip to content

Commit

Permalink
Update src/asm_files.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
dthaler and coderabbitai[bot] authored Nov 22, 2024
1 parent 33a7dcd commit b245031
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/asm_files.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ static void append_subprograms(raw_program& prog, const vector<raw_program>& pro
auto [symbol_name, section_index] =
get_symbol_name_and_section_index(symbols, reloc.relocation_entry_index);
if (section_index >= reader.sections.size()) {
throw UnmarshalError("Invalid section index at source offset " +
throw UnmarshalError("Invalid section index " + std::to_string(section_index) + " at source offset " +
std::to_string(reloc.source_offset));
}
ELFIO::section& subprogram_section = *reader.sections[section_index];
Expand Down

0 comments on commit b245031

Please sign in to comment.