summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/SizeOpts.cpp
diff options
context:
space:
mode:
authorKristof Umann <kristof.umann@ericsson.com>2019-04-17 19:56:40 +0000
committerKristof Umann <kristof.umann@ericsson.com>2019-04-17 19:56:40 +0000
commit25e592e52236669f72bfb54986c1197cc6b640cf (patch)
treece581b3ed5d2182bbf404d5ef56652d21bbaca7b /llvm/lib/Transforms/Utils/SizeOpts.cpp
parent7a5eae15a14677c594475cf88934a00f00da870a (diff)
downloadbcm5719-llvm-25e592e52236669f72bfb54986c1197cc6b640cf.tar.gz
bcm5719-llvm-25e592e52236669f72bfb54986c1197cc6b640cf.zip
[analyzer] PR41185: Fix regression where __builtin_* functions weren't recognized
For the following code snippet: void builtin_function_call_crash_fixes(char *c) { __builtin_strncpy(c, "", 6); __builtin_memset(c, '\0', (0)); __builtin_memcpy(c, c, 0); } security.insecureAPI.DeprecatedOrUnsafeBufferHandling caused a regression, as it didn't recognize functions starting with __builtin_. Fixed exactly that. I wanted to modify an existing test file, but the two I found didn't seem like perfect candidates. While I was there, I prettified their RUN: lines. Differential Revision: https://reviews.llvm.org/D59812 llvm-svn: 358609
Diffstat (limited to 'llvm/lib/Transforms/Utils/SizeOpts.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud