By not checking if the first byte of the buffer is accessible,
we missed some reports in the Juliet benchmark.
(Juliet CWE-124 Buffer Underwrite: memcpy, memmove)
Depends on D159108
Paths
| Differential D159109
[analyzer] CStringChecker buffer access checks should check the first bytes ClosedPublic Authored by steakhal on Aug 29 2023, 8:21 AM.
Details Summary By not checking if the first byte of the buffer is accessible, (Juliet CWE-124 Buffer Underwrite: memcpy, memmove) Depends on D159108
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Aug 30 2023, 3:37 AM This revision was landed with ongoing or failed builds.Sep 11 2023, 5:21 AM Closed by commit rG0954dc3fb921: [analyzer] CStringChecker buffer access checks should check the first bytes (authored by steakhal). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 556421 clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp
clang/test/Analysis/string.c
|