This is an archive of the discontinued LLVM Phabricator instance.

Fix dwarf sequence insertions
ClosedPublic

Authored by fjricci on Jan 7 2016, 3:51 PM.

Details

Summary

If two dwarf sequences begin with entries that have identical addresses,
it is possible for the comparator to order the first entry of the new
sequence between the first and second entries of the existing sequence.

This will result in an attempted insertion of the second sequence inside
of the first sequence, which is invalid.

Ensure that insertions only occur in between existing sequences.

Diff Detail

Event Timeline

fjricci updated this revision to Diff 44281.Jan 7 2016, 3:51 PM
fjricci retitled this revision from to Fix dwarf sequence insertions.
fjricci updated this object.
fjricci added reviewers: clayborg, andrew.w.kaylor.
fjricci added subscribers: lldb-commits, sas.
clayborg accepted this revision.Jan 7 2016, 4:45 PM
clayborg edited edge metadata.

Looks good.

This revision is now accepted and ready to land.Jan 7 2016, 4:45 PM
sas closed this revision.Jan 7 2016, 5:43 PM

Committed as r257132.