Skip to content

Commit

Permalink
Fix format string for uint64_t and size_t data.
Browse files Browse the repository at this point in the history
Change-Id: I9086396561ea7870cfd55ab62c416d2944f0d46b
Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/5564823
Reviewed-by: Mike Frysinger <vapier@chromium.org>
  • Loading branch information
tyrelrussell authored and vapier committed May 23, 2024
1 parent 9dd7d34 commit 69f9a4e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/common/dwarf/dwarf2reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -964,11 +964,10 @@ bool CompilationUnit::ProcessDIEs() {
continue;
}

// Abbrev > abbrev_.size() indicates a corruption in the dwarf file
// We attempt to recover
// Abbrev > abbrev_.size() indicates a corruption in the dwarf file.
if (abbrev_num > abbrevs_->size()) {
fprintf(stderr, "An invalid abbrev was referenced %d / %d. Stopped "
"procesing following DIEs in this CU.", abbrev_num,
fprintf(stderr, "An invalid abbrev was referenced %" PRIu64 " / %zu. "
"Stopped procesing following DIEs in this CU.", abbrev_num,
abbrevs_->size());
return false;
}
Expand Down

0 comments on commit 69f9a4e

Please sign in to comment.