When creating {insert,extract}value instructions from a BitcodeReader, we
weren't verifying the fields were valid.
Bugs found with afl-fuzz
Differential D7325
[Bitcode reader] Fix a few assertions when reading invalid files filcab on Feb 1 2015, 5:28 PM. Authored by
Details When creating {insert,extract}value instructions from a BitcodeReader, we Bugs found with afl-fuzz
Diff Detail
Event TimelineComment Actions are you ever planning on switching over to a more "diag" style interface like Rafael suggested? That would allow making these errors much more informative. Comment Actions For now I'm still making sure we don't assert on stuff. These ones also end up using the error reporting that was already there, so I might end up starting doing the Diag-style patch soon, but it depends on Filipe Comment Actions I am all for having a separate patch just replacing the fatal errors with diag + error_code/ErrorOr. That way we get an independent test change showing the improvement. |