[llvm-bugs] [Bug 32958] New: Static analyzer doesn't consider the possibility of running out of memory => spurious dead code results.

via llvm-bugs llvm-bugs at lists.llvm.org
Sun May 7 09:28:51 PDT 2017


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

            Bug ID: 32958
           Summary: Static analyzer doesn't consider the possibility of
                    running out of memory => spurious dead code results.
           Product: clang
           Version: 3.9
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
          Assignee: kremenek at apple.com
          Reporter: demiobenour at gmail.com
                CC: llvm-bugs at lists.llvm.org

The static analyzer does not consider the possibility that a system call could
return -ENOMEM, or that malloc() could return NULL.  This causes false
positives on the SlipRock library
(https://github.com/DemiMarie/SlipRock/commit/15ac3eae822dbd4d80e3033a43b702a08d581c89),
which includes code to handle these errors.

-- 
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/20170507/e9d15782/attachment.html>


More information about the llvm-bugs mailing list