[Top][All Lists]

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

Re: fix memory leaks and enable ASAN/UBSAN

From: Assaf Gordon
Subject: Re: fix memory leaks and enable ASAN/UBSAN
Date: Sat, 4 Aug 2018 23:12:00 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1


Attached same patch, rebased to latest master (mostly due to
space-after-parens  syntax check which changed hundreds of lines).

On 02/08/18 12:01 AM, Assaf Gordon wrote:
Attached few patches that fix memory leaks.
Most are not critical, and only enabled with DEBUG_LEAKS.
But one does need review, I suspect it is a runtime leak.

With these patches, sed can be compiled with gcc's address
sanitizer (ASAN) and undefined-behavior sanitizer (UBSAN),
and all tests pass under the sanitizers.

=== patches ===
sed: do not close stderr on exit
sed: free allocated memory under DEBUG_LEAKS
sed: fix memory leak (TODO: REVIEW)
gnulib: update to latest (for regex memory leaks)
maint: add address-sanitizer build target
maint: add undefined-behavior build target

Attachment: sed-sanitize-2.patch.gz
Description: application/gzip

reply via email to

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