[llvm-bugs] [Bug 45569] New: lib/fuzzer/FuzzerUtil.cpp:197: dangling pointer
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Apr 16 00:55:58 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=45569
Bug ID: 45569
Summary: lib/fuzzer/FuzzerUtil.cpp:197: dangling pointer
Product: compiler-rt
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: fuzzer
Assignee: unassignedbugs at nondot.org
Reporter: dcb314 at hotmail.com
CC: llvm-bugs at lists.llvm.org
lib/fuzzer/FuzzerUtil.cpp:197:10: error: Returning pointer to local variable
'PcDescr' that will be invalid when returning. [returnDanglingLifetime]
Source code is
char PcDescr[1024] = {};
EF->__sanitizer_symbolize_pc(reinterpret_cast<void*>(PC),
SymbolizedFMT, PcDescr, sizeof(PcDescr));
PcDescr[sizeof(PcDescr) - 1] = 0; // Just in case.
return PcDescr;
--
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/20200416/c068302f/attachment.html>
More information about the llvm-bugs
mailing list