This is an archive of the discontinued LLVM Phabricator instance.

[NFC][analyzer] Pass down a State and a Pred ExplodedNode in the MallocChecker
Needs ReviewPublic

Authored by gamesh411 on May 11 2022, 2:32 AM.

Details

Summary

Make the predecessor ExplodedNode available in the MallocChecker's state
modeling.

Original author: steakhal

Diff Detail

Event Timeline

gamesh411 created this revision.May 11 2022, 2:32 AM
Herald added a project: Restricted Project. · View Herald Transcript
gamesh411 requested review of this revision.May 11 2022, 2:32 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 11 2022, 2:32 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript

Also mention in the summary that we are doing this because we want to do multiple transitions with different NoteTags at different handlers there.
For E.g. we want to put NoteTags when we do a taint propagation.

That being said, now we model the extent of the allocated region by simply binding the size argument of the allocation call to the extent map.
We won't need to propagate taint to the extent if the size expression was already tainted. Thus, I'm not even sure we actually need this change anymore.
Could you please check it?