[LLVMbugs] [Bug 23965] New: False positive in checker: Use of memory after it is freed
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Jun 26 09:09:16 PDT 2015
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: kremenek at apple.com
Reporter: me at moshekaplan.com
CC: llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150626/0b342ade/attachment.html>
More information about the llvm-bugs
mailing list