This is an archive of the discontinued LLVM Phabricator instance.

[DWARF v5] incorrect length of string offsets tables
ClosedPublic

Authored by wolfgangp on Apr 21 2018, 6:19 AM.

Details

Summary

This patch fixes a bug with DWARF v5 string offsets tables found by David Anderson. Currently the length encodes the length of the contribution minus the size of the table header, when the standard demands it to be the contribution length minus the size of the length field. So it's basically off by 4 at the moment, failing to account for the version field and padding in the header.

This patch fixes this in both the reader and producer code.

Diff Detail

Repository
rL LLVM

Event Timeline

wolfgangp created this revision.Apr 21 2018, 6:19 AM
JDevlieghere accepted this revision.Apr 21 2018, 12:09 PM

Thanks Wolfgang, LGTM!

This revision is now accepted and ready to land.Apr 21 2018, 12:09 PM
This revision was automatically updated to reflect the committed changes.