[llvm-bugs] [Bug 32886] New: Segfault in demangler
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue May 2 03:30:02 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=32886
Bug ID: 32886
Summary: Segfault in demangler
Product: libc++abi
Version: unspecified
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: unassignedbugs at nondot.org
Reporter: dungnguy at comp.nus.edu.sg
CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com
Dear All,
This bug was found with AFLGo, a directed version of AFL/AFLFast. Thanks also
to Marcel Böhme and Van-Thuan Pham.
First, you need to build the project
(https://github.com/llvm-mirror/libcxxabi/blob/master/fuzz/cxa_demangle_fuzzer.cpp)
to obtain the binary file.
To reproduce:
$ printf "A" > test
$ for a in $(seq 1 15000); do printf "a"; done >> test; echo "" >> test; cat
test | ./cxa_demangle_fuzzer
Segmentation fault
ASAN says:
#0 0x6c554d in char const* __cxxabiv1::(anonymous
namespace)::parse_expression<__cxxabiv1::(anonymous namespace)::Db>(char
const*, char const*, __cxxabiv1::(anonymous namespace)::Db&)
/src/llvm_libcxxabi/src/cxa_demangle.cpp:3321
#1 0x75db2f in char const* __cxxabiv1::(anonymous
namespace)::parse_binary_expression<__cxxabiv1::(anonymous namespace)::Db>(char
const*, char const*, __cxxabiv1::(anonymous namespace)::Db::String const&,
__cxxabiv1::(anonymous namespace)::Db&)
/src/llvm_libcxxabi/src/cxa_demangle.cpp:3252:22
#2 0x6cac5f in char const* __cxxabiv1::(anonymous
namespace)::parse_expression<__cxxabiv1::(anonymous namespace)::Db>(char
const*, char const*, __cxxabiv1::(anonymous namespace)::Db&)
/src/llvm_libcxxabi/src/cxa_demangle.cpp:3346:21
#3 0x75db2f in char const* __cxxabiv1::(anonymous
namespace)::parse_binary_expression<__cxxabiv1::(anonymous namespace)::Db>(char
const*, char const*, __cxxabiv1::(anonymous namespace)::Db::String const&,
__cxxabiv1::(anonymous namespace)::Db&)
/src/llvm_libcxxabi/src/cxa_demangle.cpp:3252:22
#4 0x6cac5f in char const* __cxxabiv1::(anonymous
namespace)::parse_expression<__cxxabiv1::(anonymous namespace)::Db>(char
const*, char const*, __cxxabiv1::(anonymous namespace)::Db&)
/src/llvm_libcxxabi/src/cxa_demangle.cpp:3346:21
#5 0x75db2f in char const* __cxxabiv1::(anonymous
namespace)::parse_binary_expression<__cxxabiv1::(anonymous namespace)::Db>(char
const*, char const*, __cxxabiv1::(anonymous namespace)::Db::String const&,
__cxxabiv1::(anonymous namespace)::Db&)
/src/llvm_libcxxabi/src/cxa_demangle.cpp:3252:22
#6 0x6cac5f in char const* __cxxabiv1::(anonymous
namespace)::parse_expression<__cxxabiv1::(anonymous namespace)::Db>(char
const*, char const*, __cxxabiv1::(anonymous namespace)::Db&)
/src/llvm_libcxxabi/src/cxa_demangle.cpp:3346:21
...
Regards,
Manh-Dung Nguyen
--
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/20170502/9771b6b7/attachment.html>
More information about the llvm-bugs
mailing list