summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2018-07-19 21:50:03 +0000
committerDavid Carlier <devnexen@gmail.com>2018-07-19 21:50:03 +0000
commit8e75de21002f104e4c328b5f43cc031fcb48f45f (patch)
tree0f3d87fc13c546e850949df2f18e43c6e573c0b6 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent83497d9eadd04a0ee57e4858a8f3b7b3cb99a22b (diff)
downloadbcm5719-llvm-8e75de21002f104e4c328b5f43cc031fcb48f45f.tar.gz
bcm5719-llvm-8e75de21002f104e4c328b5f43cc031fcb48f45f.zip
[CStringSyntaxChecker] Check strlcpy sizeof syntax
The last argument is expected to be the destination buffer size (or less). Detects if it points to destination buffer size directly or via a variable. Detects if it is an integral, try to detect if the destination buffer can receive the source length. Updating bsd-string.c unit tests as it make it fails now. Reviewers: george.karpenpov, NoQ Reviewed By: george.karpenkov Differential Revision: https://reviews.llvm.org/D48884 llvm-svn: 337499
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud