Skip to content

Commit

Permalink
Issue #392 Fixed crash when debuginfo file was passed to the tool.
Browse files Browse the repository at this point in the history
  • Loading branch information
vogel76 committed Jan 20, 2025
1 parent e115514 commit c0d79e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bloaty.h
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,8 @@ class ObjectFile {

// Sets the debug file for |this|. |file| must outlive this instance.
void set_debug_file(const ObjectFile* file) {
assert(debug_file_->GetBuildId() == GetBuildId());
assert(file != nullptr);
assert(file->GetBuildId() == GetBuildId());
debug_file_ = file;
}

Expand Down

0 comments on commit c0d79e4

Please sign in to comment.