This is an archive of the discontinued LLVM Phabricator instance.

Fix a use-after-free in `llvm-config`.
ClosedPublic

Authored by DiamondLovesYou on Nov 22 2015, 8:25 PM.

Details

Summary

This could happen if GetComponentNames is true, because Name from
VisitComponent would reference a stack instance of std::string in
ComputeLibsForComponents.

Diff Detail

Repository
rL LLVM

Event Timeline

DiamondLovesYou retitled this revision from to Fix a use-after-free in `llvm-config`..
DiamondLovesYou updated this object.
DiamondLovesYou added a reviewer: beanz.
DiamondLovesYou added a subscriber: llvm-commits.
beanz accepted this revision.Nov 25 2015, 12:23 PM
beanz edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Nov 25 2015, 12:23 PM
This revision was automatically updated to reflect the committed changes.