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

            Bug ID: 45059
           Summary: Fails to notice a variable can only be zero, so a
                    reported null pointer dereference can't happen
           Product: clang
           Version: 9.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]

As reported in https://github.com/Tencent/rapidjson/issues/1651 the clang
Static Analyzer reports an issue in a very simple, two lines, RapidJSON
program.

AFAICT when it does "allocators.h:205:13: note: Assuming 'originalPtr' is not
equal to null" it's making an error (fails to see a constrain). If chunkHead_
is NULL, then originalPtr must also have been NULL.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to