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

            Bug ID: 23965
           Summary: False positive in checker: Use of memory after it is
                    freed
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Created attachment 14522
  --> https://llvm.org/bugs/attachment.cgi?id=14522&action=edit
Original source file (airserv-ng.c)

When analyzing airserv-ng.c, clang reports a use after free.

 https://github.com/aircrack-ng/aircrack-ng/blob/master/src/airserv-ng.c#L140

However, the memory is NULLed immediately after the call to free. Therefore, if
(c == NULL) is true and it breaks out of the loop.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to