aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2023-08-27 22:19:31 -0700
committerFangrui Song <i@maskray.me>2023-08-27 22:19:31 -0700
commitbeeb37a8f3275281be305d2d1afe35ca053e21c0 (patch)
treed1f369eadfdd60139c6a0c5bcca10c41958fd415 /clang/lib/CodeGen/CodeGenFunction.h
parent510b6b79141cc00641369c9544489b112c4e4f43 (diff)
downloadllvm-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