Open Quuxplusone opened 11 years ago
Bugzilla Link | PR15855 |
Status | NEW |
Importance | P normal |
Reported by | bugzilla@jwwalker.com |
Reported on | 2013-04-26 17:24:53 -0700 |
Last modified on | 2013-04-30 03:29:01 -0700 |
Version | trunk |
Hardware | Macintosh MacOS X |
CC | bugzilla@jwwalker.com, daniel@fahlgren.se, jrose@belkadan.com, llvm-bugs@lists.llvm.org |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also |
This embarrassing false positive is due to not reasoning about unary minus. In theory there are difficulties when hitting implementation-defined and undefined behavior, but in practice the analyzer's pretty heavily geared towards -fwrapv semantics right now.
Tracked by rdar://problem/12351075.
Oops, maybe it's not a false positive. In the unlikely case that numFaces is the most negative number (0x80000000 when using 32 bits), absFaces is the same, and the dereference is reached.