This is an archive of the discontinued LLVM Phabricator instance.

Fix an overflow issue at BackpatchWord
ClosedPublic

Authored by stephan.yichao.zhao on Aug 26 2020, 10:54 AM.

Details

Summary

This happens when generating a huge file by LTO, for example, with -gmlt.
When BitNo is > 2^35, ByteNo is overflowed, and an incorrect output offset is overwritten.
This generates ill-formed bitcodes.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptAug 26 2020, 10:54 AM
stephan.yichao.zhao requested review of this revision.Aug 26 2020, 10:54 AM
This revision is now accepted and ready to land.Aug 26 2020, 11:09 AM
vitalybuka accepted this revision.Aug 26 2020, 2:10 PM