This is an archive of the discontinued LLVM Phabricator instance.

Fix bitcode parser to check ValueAsMetaData::get calls.
Needs ReviewPublic

Authored by kschimpf on Jul 30 2015, 10:52 AM.

Details

Summary

Using fuzzing, detected an assertion failure on calls to
ValueAsMetaData::get. This method asserts that the argument
must be non-null. Fixes callers in bitcode reader to check
and generate appropriate error if null.

Diff Detail

Event Timeline

kschimpf updated this revision to Diff 31052.Jul 30 2015, 10:52 AM
kschimpf retitled this revision from to Fix bitcode parser to check ValueAsMetaData::get calls..
kschimpf updated this object.
kschimpf added reviewers: dschuff, jvoung, rafael, filcab.
kschimpf added a subscriber: llvm-commits.
filcab edited edge metadata.Jul 30 2015, 7:53 PM

Hi Karl,

Can you test both METADATA_OLD_NODE and METADATA_VALUE?

Thank you!

espindola edited reviewers, added: espindola; removed: rafael.Mar 15 2018, 10:59 AM