[PATCH] D86870: [analyzer] Add more tests for ArrayBoundCheckerV2

Balázs Benics via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 31 04:30:56 PDT 2020


steakhal created this revision.
steakhal added reviewers: NoQ, vsavchenko, xazax.hun, Szelethus, martong.
Herald added subscribers: cfe-commits, ASDenysPetrov, Charusso, dkrupp, donat.nagy, mikhail.ramalho, a.sidorin, rnkovacs, szepet, baloghadamsoftware, whisperity.
Herald added a project: clang.
steakhal requested review of this revision.

According to a Bugzilla ticket <https://bugs.llvm.org/show_bug.cgi?id=45148> produces a false-positive report.
This patch adds a test demonstrating the current //flawed// behavior.
Also adds several similar test cases just to be on the safe side.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D86870

Files:
  clang/test/Analysis/out-of-bounds-false-positive.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86870.288921.patch
Type: text/x-patch
Size: 4479 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200831/031a3e2a/attachment-0001.bin>


More information about the cfe-commits mailing list