This is an archive of the discontinued LLVM Phabricator instance.

Fix use-after-free in SymbolTable::replaceAllSymbolUses
ClosedPublic

Authored by mehdi_amini on Aug 2 2022, 3:18 PM.

Details

Summary

In some cases the recursion will grow the visited hash table and
invalidate the cached iterator.
(caught with ASAN)

Diff Detail

Event Timeline

mehdi_amini created this revision.Aug 2 2022, 3:18 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 2 2022, 3:18 PM
mehdi_amini requested review of this revision.Aug 2 2022, 3:18 PM
rriddle accepted this revision.Aug 2 2022, 3:22 PM
This revision is now accepted and ready to land.Aug 2 2022, 3:22 PM
This revision was landed with ongoing or failed builds.Aug 2 2022, 3:30 PM
This revision was automatically updated to reflect the committed changes.