Skip to content

Commit 2bbd19e

Browse files
committed
Issue google#392 Fixed crash when debuginfo file was passed to the tool.
1 parent e115514 commit 2bbd19e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/bloaty.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,8 @@ class ObjectFile {
279279

280280
// Sets the debug file for |this|. |file| must outlive this instance.
281281
void set_debug_file(const ObjectFile* file) {
282-
assert(debug_file_->GetBuildId() == GetBuildId());
282+
assert(file != nullptr);
283+
assert(file->GetBuildId() == GetBuildId());
283284
debug_file_ = file;
284285
}
285286

0 commit comments

Comments
 (0)