Szelethus added a comment.
I don't have much to say here, this goes a bit outside my expertise. @NoQ?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81061/new/
https://reviews.llvm.org/D81061
___
cfe-co
balazske added a comment.
Ping
This is a better fix for the previous problem, and makes the code better too.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81061/new/
https://reviews.llvm.org/D81061
___
balazske updated this revision to Diff 272361.
balazske added a comment.
- Rebase
- Using condition type for `evalBinOp`
- Comments updated
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81061/new/
https://reviews.llvm.org/D81061
Files:
clang/lib
balazske marked 2 inline comments as done.
balazske added inline comments.
Comment at: clang/lib/StaticAnalyzer/Checkers/VLASizeChecker.cpp:130-131
+// At least check for zero again.
+// Assume that this is a more exact fact than the previous assumptions
+
NoQ added inline comments.
Comment at: clang/lib/StaticAnalyzer/Checkers/VLASizeChecker.cpp:130-131
+// At least check for zero again.
+// Assume that this is a more exact fact than the previous assumptions
+// (in checkVLAIndexSize), so report error too.
balazske updated this revision to Diff 268216.
balazske added a comment.
Improved assumption on array size.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81061/new/
https://reviews.llvm.org/D81061
Files:
clang/lib/StaticAnalyzer/Checkers/VLASize
balazske marked 2 inline comments as done.
balazske added inline comments.
Comment at: clang/lib/StaticAnalyzer/Checkers/VLASizeChecker.cpp:127-129
+// Despite the previous assumptions for non-zero and positiveness,
+// this value might be zero or negative.
+
NoQ added inline comments.
Comment at: clang/lib/StaticAnalyzer/Checkers/VLASizeChecker.cpp:127-129
+// Despite the previous assumptions for non-zero and positiveness,
+// this value might be zero or negative.
+// At least check for zero again.
---
balazske added a comment.
There may be still a problem somewhere else. I think assume of "a" and "a==0"
should have the same results.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81061/new/
https://reviews.llvm.org/D81061
_
balazske created this revision.
Herald added subscribers: cfe-commits, ASDenysPetrov, martong, Charusso,
gamesh411, dkrupp, donat.nagy, Szelethus, arphaman, mikhail.ramalho, a.sidorin,
szepet, baloghadamsoftware, xazax.hun.
Herald added a reviewer: Szelethus.
Herald added a project: clang.
balazs
10 matches
Mail list logo