commit | 8f94bcb11dbfe15c5b84b0f4abfae1b124d3fb7a | [log] [tgz] |
---|---|---|
author | John Stiles <johnstiles@google.com> | Thu Apr 18 13:08:37 2024 -0400 |
committer | SkCQ <skcq-be@skia-corp.google.com.iam.gserviceaccount.com> | Thu Apr 18 20:53:11 2024 +0000 |
tree | 972f0a861317b3d9b4fe3d332a42050dbfbd0965 | |
parent | 8fd4d8eaadc2471b801faea1a3a0da1137d91609 [diff] |
Implement ASAN poisoning for TArray reserved capacity. Reading or writing past the end of a TArray's storage will now cause ASAN to immediately halt execution. This change dovetails with http://review.skia.org/842503, which rounded up STArray storage buffers to multiples of 8 bytes, because ASAN poisoning occurs at 8-byte granularities. For more information on ASAN's behavior with small ranges, see https://github.com/google/sanitizers/wiki/AddressSanitizerAlgorithm#mapping . Change-Id: I3681511d4f544b5d5f3e1d72837ea2b98fb0d7fb Bug: skia:40044929 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/842482 Commit-Queue: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com> Auto-Submit: John Stiles <johnstiles@google.com>