commit | 5b8a17129cf1042626b4d06b533c1b064a5e56fd | [log] [tgz] |
---|---|---|
author | Peter Collingbourne <peter@pcc.me.uk> | Thu May 13 13:55:16 2021 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Tue May 25 19:10:35 2021 -0700 |
tree | 02f476a662d7c52e7f70aabc81536903be12be43 | |
parent | 79cb0059113603f7226b52fa73442c16707f8bb4 [diff] |
scudo: Fix MTE error reporting for zero-sized allocations. 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(). Differential Revision: https://reviews.llvm.org/D102442 GitOrigin-RevId: f79929aceae966f9419cfc00c275e5e60bd0ee54