This is an archive of the discontinued LLVM Phabricator instance.

[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,
we missed some reports in the Juliet benchmark.

(Juliet CWE-124 Buffer Underwrite: memcpy, memmove)

Depends on D159108

Diff Detail

Event Timeline

steakhal created this revision.Aug 29 2023, 8:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 29 2023, 8:21 AM
steakhal requested review of this revision.Aug 29 2023, 8:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 29 2023, 8:21 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
donat.nagy accepted this revision.Aug 30 2023, 3:37 AM

LGTM if the test results are also good.

This 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
This revision was automatically updated to reflect the committed changes.