bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/21880] Memory leak in demangle


From: mudongliangabcd at gmail dot com
Subject: [Bug binutils/21880] Memory leak in demangle
Date: Wed, 20 Sep 2017 15:04:17 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=21880

Dongliang Mu <mudongliangabcd at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mudongliangabcd at gmail dot 
com

--- Comment #4 from Dongliang Mu <mudongliangabcd at gmail dot com> ---
Hello Google AutoFuzz Team:

I tried to reproduce this bug in the docker, but when I compiled
demangle_fuzzer.cc. It encounters one error:

$ $CXX $CXXFLAGS $LDFLAGS -I../include ../libiberty/demangle_fuzzer.cc
libiberty.a -lFuzzer -o demangle_fuzzer
In file included from ../libiberty/demangle_fuzzer.cc:5:
In file included from ../include/demangle.h:32:
../include/libiberty.h:112:14: error: 'basename' is missing exception
specification 'throw()'
extern char *basename (const char *) ATTRIBUTE_RETURNS_NONNULL
ATTRIBUTE_NONNULL(1);
             ^
                                     throw()
/usr/include/string.h:601:26: note: previous declaration is here
extern "C++" const char *basename (const char *__filename)
                         ^
1 error generated.


How do I fix this problem and then trigger the bug?

Note, in the confguration of binutils, "--host" option is essential.

The new Dockerfile for my case is
https://gist.github.com/mudongliang/3c14d1c4937a9aa6035957f34adfe68f

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]