This is an archive of the discontinued LLVM Phabricator instance.

scudo: Fix MTE error reporting for zero-sized allocations.
ClosedPublic

Authored by pcc on May 13 2021, 2:07 PM.

Details

Summary

With zero-sized allocations we don't actually end up storing the
address tag to the memory tag space, so store it in the first byte of
the chunk instead so that we can find it later in getInlineErrorInfo().

Diff Detail

Event Timeline

pcc requested review of this revision.May 13 2021, 2:07 PM
pcc created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptMay 13 2021, 2:07 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
eugenis accepted this revision.May 13 2021, 6:00 PM

LGTM

This revision is now accepted and ready to land.May 13 2021, 6:00 PM
This revision was landed with ongoing or failed builds.May 13 2021, 6:14 PM
This revision was automatically updated to reflect the committed changes.