[PATCH] D44934: [analyzer] Improve the modeling of `memset()`.
Henry Wong via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 2 08:44:17 PDT 2018
MTC updated this revision to Diff 140629.
MTC added a comment.
> Thank you for your reminding, I overlooked this point. However for non-concrete character, the symbol value, if we just invalidate the region, the constraint information of the non-concrete character will be lost. Do we need to consider this?
Sorry for my hasty question, analyzer does not support to bind a symbol with a default binding.
The update of this diff is as follows.
- If the char value is not concrete, just invalidate the region.
- Add a test about symbolic char value.
- A little code refactoring.
Repository:
rC Clang
https://reviews.llvm.org/D44934
Files:
include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h
include/clang/StaticAnalyzer/Core/PathSensitive/Store.h
lib/StaticAnalyzer/Checkers/CStringChecker.cpp
lib/StaticAnalyzer/Core/ProgramState.cpp
lib/StaticAnalyzer/Core/RegionStore.cpp
lib/StaticAnalyzer/Core/Store.cpp
test/Analysis/bstring.cpp
test/Analysis/null-deref-ps-region.c
test/Analysis/string.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44934.140629.patch
Type: text/x-patch
Size: 25213 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180402/32830b47/attachment-0001.bin>
More information about the cfe-commits
mailing list