This is an archive of the discontinued LLVM Phabricator instance.

[BlockExtractor] Avoid assert with wrong line format
ClosedPublic

Authored by jsji on Aug 19 2019, 2:52 PM.

Details

Summary

When the line format is wrong, we may end up accessing out of bound
memory. eg: the test with invalide line will cause assert.
Assertion `idx < size()' failed

The fix is to report fatal when we found mismatched line format.

Diff Detail

Repository
rL LLVM

Event Timeline

jsji created this revision.Aug 19 2019, 2:52 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 19 2019, 2:52 PM
qcolombet accepted this revision.Aug 19 2019, 3:42 PM
This revision is now accepted and ready to land.Aug 19 2019, 3:42 PM
This revision was automatically updated to reflect the committed changes.