Open Quuxplusone opened 8 years ago
Bugzilla Link | PR27820 |
Status | NEW |
Importance | P normal |
Reported by | Lei Zhang (ioripolo@foxmail.com) |
Reported on | 2016-05-19 22:24:30 -0700 |
Last modified on | 2016-06-01 00:03:11 -0700 |
Version | 3.6 |
Hardware | PC Windows NT |
CC | humeafo@gmail.com, llvm-bugs@lists.llvm.org |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also |
int table[] = {1, 2};
when index is 2, it's really out of bound.
so the problem besides you described the checker has a serious bug too.
Sorry for this mistake.
But if we change the condition to
if (pos >= 0 && pos <2)
this false positive remains