Make zero-sized allocations work with MiraclePtr
If the MiraclePtr PA extras are enabled, Alloc() returns a pointer past the end of a slot for zero-sized allocations, which leads to problems when a function needs to determine the slot from a given pointer. Adjust the requested allocation size to avoid that. Bug: 1162769 Change-Id: I7c398a99a257f443ef704b87ac188acef0bcc5a1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2613974 Auto-Submit: Sergei Glazunov <glazunov@google.com> Reviewed-by:Bartek Nowierski <bartekn@chromium.org> Reviewed-by:
Kentaro Hara <haraken@chromium.org> Commit-Queue: Kentaro Hara <haraken@chromium.org> Cr-Commit-Position: refs/heads/master@{#841381}
Showing
Please register or sign in to comment