By not checking if the first byte of the destination of strcpy and
strncpy is writable, we missed some reports in the Juliet benchmark.
(Juliet CWE-124 Buffer Underwrite: strcpy, strncpy)
Paths
| Differential D159108
[analyzer] CStringChecker should check the first byte of the destination of strcpy, strncpy ClosedPublic Authored by steakhal on Aug 29 2023, 8:21 AM.
Details Summary By not checking if the first byte of the destination of strcpy and (Juliet CWE-124 Buffer Underwrite: strcpy, strncpy)
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Aug 30 2023, 3:38 AM steakhal removed a parent revision: D159107: [analyzer] ArrayBoundCheckerV2 should disallow forming lvalues to out-of-bounds locations. Closed by commit rGc3a87ddad62a: [analyzer] CStringChecker should check the first byte of the destination of… (authored by steakhal). · Explain WhySep 11 2023, 5:21 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 556420 clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp
clang/test/Analysis/string.c
|