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

            Bug ID: 34193
           Summary: False negative in following pointer for
                    core.NullDereference
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Static Analyzer
          Assignee: kreme...@apple.com
          Reporter: whisper...@gmail.com
                CC: llvm-bugs@lists.llvm.org

Consider the following code:

int* a()    { return nullptr; }
int  main()
{
  int* ptr =  a();
  int    x = *ptr;
  return x;
}

While this is clearly a null dereference, ClangSA does not seem to properly
follow this pointer in the analyzer, or some inner heuristics swallow this
case.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to