[llvm-bugs] [Bug 26535] "tautological-undefined-compare" warning is not fired when dereferrenced null pointer is casted back to pointer

via llvm-bugs llvm-bugs at lists.llvm.org
Wed May 18 15:42:17 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=26535

Nick Lewycky <nlewycky at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Nick Lewycky <nlewycky at google.com> ---
Fixed in r269572.

The warning won't catch more advanced examples where you break the expression
up across variables. If you want that, you would need to file a feature request
on the static analyzer. There is another features, -fsanitize=null which can
find these problems provided they occur at runtime.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160518/5bbb633a/attachment-0001.html>


More information about the llvm-bugs mailing list