[llvm-bugs] [Bug 25772] New: Analyzer misses writes to invalid memory
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Dec 8 06:17:58 PST 2015
https://llvm.org/bugs/show_bug.cgi?id=25772
Bug ID: 25772
Summary: Analyzer misses writes to invalid memory
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
Assignee: kremenek at apple.com
Reporter: t at sharklasers.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
Pointers are kept to some objects on the stack. Once the lifetime of those
objects end, the pointers are used to write to that memory.
$ scan-build g++ -std=c++1z write_invalid_mem.cpp
scan-build: Using 'local/tmp/clang/bin/clang' for static analysis
scan-build: Removing directory '/tmp/scan-build-2015-12-08-151246-7669-1'
because it contains no reports.
scan-build: No bugs found.
Example taken from the talk "CppCon 2015: Herb Sutter "Writing Good C++14... By
Default" at 33:12
--
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/20151208/e5fe176c/attachment.html>
More information about the llvm-bugs
mailing list