This is an archive of the discontinued LLVM Phabricator instance.

[lld] Fix use-after-free bug identified by the Address Sanitizer
ClosedPublic

Authored by garious on Feb 18 2015, 12:01 PM.

Details

Summary

atomContent's memory is freed at the end of the stack frame, but it is referenced by the atom pushed into _definedAtoms.

Diff Detail

Repository
rL LLVM

Event Timeline

garious updated this revision to Diff 20211.Feb 18 2015, 12:01 PM
garious retitled this revision from to [lld] Fix use-after-free bug identified by the Address Sanitizer.
garious updated this object.
garious edited the test plan for this revision. (Show Details)
garious added a reviewer: ruiu.
garious set the repository for this revision to rL LLVM.
garious added a project: lld.
garious added a subscriber: Unknown Object (MLST).
ruiu accepted this revision.Feb 18 2015, 1:49 PM
ruiu edited edge metadata.

LGTM

This revision is now accepted and ready to land.Feb 18 2015, 1:49 PM
This revision was automatically updated to reflect the committed changes.