mirror of
https://github.com/intel/llvm.git
synced 2026-01-25 10:55:58 +08:00
The shadow for a short granule is stored in the last byte of the granule. Currently, if there's a tail-overwrite report (a buffer-overflow-write in uninstrumented code), we report the shadow byte as a mismatch against the magic. Fix this bug by slapping the shadow into the expected value. This also makes sure that if the uninstrumented WRITE does clobber the shadow byte, it reports the shadow was actually clobbered as well. Reviewed By: eugenis, fmayer Differential Revision: https://reviews.llvm.org/D107938
Compiler-RT ================================ This directory and its subdirectories contain source code for the compiler support routines. Compiler-RT is open source software. You may freely distribute it under the terms of the license agreement found in LICENSE.txt. ================================