[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A memory leak in _nc_wrap_entry
From: |
Thomas Dickey |
Subject: |
Re: A memory leak in _nc_wrap_entry |
Date: |
Thu, 20 Aug 2020 03:55:52 -0400 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
On Thu, Aug 20, 2020 at 11:03:57AM +0800, 乐泰 wrote:
> Reporter: Tai
>
>
> Version: ncurses-6.2
>
>
> Command: AFL_USE_ASAN=1 sudo make install
>
>
> Environment: Ubuntu 16.04 x86-64
>
>
> Detail Information: we have found some memory leaks in ncurses-6.2 when we
> compile the ncurses-6.2 with address sanitizer. The compile commands are:
> $cd ./ncurses-6.2
> $mkdir asan-ins
> $cd asan-ins
> $AFL_USE_ASAN=1 CC=afl-gcc CXX=afl-g++ CFLAGS="-g3" CXXFLAGS="-g3"
> ../configure --prefix=`pwd`/bin --disable-stripping
> $AFL_USE_ASAN=1 make
> $AFL_USE_ASAN=1 sudo make install
> Then it reports memory leaks as:
I'd use valgrind for this (asan2 has some problems, and in a recent
report gave incorrect information), and note the faq:
https://invisible-island.net/ncurses/ncurses.faq.html#config_leaks
--
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net
ftp://ftp.invisible-island.net
signature.asc
Description: PGP signature