[PATCH] D45050: [clang-tidy] New checker for not null-terminated result caused by strlen(), size() or equal length
Csaba Dabis via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 24 21:08:13 PDT 2018
Charusso updated this revision to Diff 166802.
Charusso marked 28 inline comments as done.
Charusso added a comment.
- Refactor and better English thanks for @whisperity!
- Removed `InjectUL` option so the checker handles the special case if the capacity of a buffer is `int.Max()`
https://reviews.llvm.org/D45050
Files:
clang-tidy/bugprone/BugproneTidyModule.cpp
clang-tidy/bugprone/CMakeLists.txt
clang-tidy/bugprone/NotNullTerminatedResultCheck.cpp
clang-tidy/bugprone/NotNullTerminatedResultCheck.h
docs/ReleaseNotes.rst
docs/clang-tidy/checks/bugprone-not-null-terminated-result.rst
docs/clang-tidy/checks/list.rst
test/clang-tidy/bugprone-not-null-terminated-result-in-initialization-strlen.c
test/clang-tidy/bugprone-not-null-terminated-result-memcpy-before-safe.c
test/clang-tidy/bugprone-not-null-terminated-result-memcpy-safe-cxx.cpp
test/clang-tidy/bugprone-not-null-terminated-result-memcpy-safe-other.c
test/clang-tidy/bugprone-not-null-terminated-result-memcpy-safe.c
test/clang-tidy/bugprone-not-null-terminated-result-strlen.c
test/clang-tidy/bugprone-not-null-terminated-result-wcslen.cpp
test/clang-tidy/bugprone-not-null-terminated-result-wmemcpy-safe-cxx.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45050.166802.patch
Type: text/x-patch
Size: 94909 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180925/3a1ba586/attachment-0001.bin>
More information about the cfe-commits
mailing list