diff options
author | Fangrui Song <i@maskray.me> | 2023-08-27 22:19:31 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2023-08-27 22:19:31 -0700 |
commit | beeb37a8f3275281be305d2d1afe35ca053e21c0 (patch) | |
tree | d1f369eadfdd60139c6a0c5bcca10c41958fd415 /clang/lib/CodeGen/CodeGenFunction.h | |
parent | 510b6b79141cc00641369c9544489b112c4e4f43 (diff) | |
download | llvm-beeb37a8f3275281be305d2d1afe35ca053e21c0.zip llvm-beeb37a8f3275281be305d2d1afe35ca053e21c0.tar.gz llvm-beeb37a8f3275281be305d2d1afe35ca053e21c0.tar.bz2 |
[sanitizer] scanf interceptor: fix write size for %mc/%mC/%mS
When the optional assignment-allocation character 'm' (Extension to the
ISO C standard) is present, we currently use internal_strlen(buf)+1 for
all of cCsS[ (D85350). Fix cCS to use the correct size.
Fix https://github.com/llvm/llvm-project/issues/61768
Reviewed By: #sanitizers, vitalybuka
Differential Revision: https://reviews.llvm.org/D158485
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
0 files changed, 0 insertions, 0 deletions