mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-12-23 07:45:36 +00:00
Update to handle dsym files that end with a header.
dsym files generated by Xcode for swift (Xcode 7.3) end with a header, and the code did not handle that case. BUG=https://bugs.chromium.org/p/google-breakpad/issues/detail?id=689 R=ivanpe@chromium.org Review URL: https://codereview.chromium.org/1971793002 .
This commit is contained in:
parent
638066b82e
commit
1bbe2f29c9
|
@ -266,7 +266,9 @@ void CompilationUnit::ReadHeader() {
|
||||||
header_.abbrev_offset = reader_->ReadOffset(headerptr);
|
header_.abbrev_offset = reader_->ReadOffset(headerptr);
|
||||||
headerptr += reader_->OffsetSize();
|
headerptr += reader_->OffsetSize();
|
||||||
|
|
||||||
assert(headerptr + 1 < buffer_ + buffer_length_);
|
// Compare against less than or equal because this may be the last
|
||||||
|
// section in the file.
|
||||||
|
assert(headerptr + 1 <= buffer_ + buffer_length_);
|
||||||
header_.address_size = reader_->ReadOneByte(headerptr);
|
header_.address_size = reader_->ReadOneByte(headerptr);
|
||||||
reader_->SetAddressSize(header_.address_size);
|
reader_->SetAddressSize(header_.address_size);
|
||||||
headerptr += 1;
|
headerptr += 1;
|
||||||
|
|
Loading…
Reference in a new issue