This is an archive of the discontinued LLVM Phabricator instance.

[clang] Fix an uint32_t overflow in large preamble.
ClosedPublic

Authored by hokein on May 5 2020, 12:30 AM.

Details

Summary

I was surprised to see the LocalOffset can exceed uint32_t, but it
does happen and lead to crashes in one of our internal huge TU with a large
preamble.

with this patch, the crash is gone.

Diff Detail

Event Timeline

hokein created this revision.May 5 2020, 12:30 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 5 2020, 12:30 AM
sammccall accepted this revision.May 5 2020, 1:02 AM

Thanks for tracking this down!

This revision is now accepted and ready to land.May 5 2020, 1:02 AM
This revision was automatically updated to reflect the committed changes.