aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/MachOObjectFile.cpp
diff options
context:
space:
mode:
authorDonĂ¡t Nagy <donat.nagy@ericsson.com>2025-08-06 18:41:07 +0200
committerGitHub <noreply@github.com>2025-08-06 18:41:07 +0200
commit180d162ca2b08f24702235cb6ce4b8be714efad8 (patch)
tree78e10a8fd53a5d8dbba7d8aaa72af3622f99de22 /llvm/lib/Object/MachOObjectFile.cpp
parentab4090981012d4be142d0291aae7ed31ecf3ca9b (diff)
downloadllvm-180d162ca2b08f24702235cb6ce4b8be714efad8.zip
llvm-180d162ca2b08f24702235cb6ce4b8be714efad8.tar.gz
llvm-180d162ca2b08f24702235cb6ce4b8be714efad8.tar.bz2
[analyzer] Remove impossible BugType from CStringChecker (#152163)
CStringChecker had an AdditionOverflow bug type which was intended for a situation where the analyzer concludes that the addition of two size/length values overflows `size_t`. I strongly suspect that the analyzer could emit bugs of this type in certain complex corner cases (e.g. due to inaccurate cast modeling), but these reports would be all false positives because in the real world the sum of two size/length values is always far below SIZE_MAX. (Although note that there was no test where the analyzer emitted a bug with this type.) To simplify the code (and perhaps eliminate false positives), I eliminated this bug type and replaced code that emits it by a simple `addSink()` call (because we still want to get rid of the execution paths where the analyzer has invalid assumptions).
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions