sed-devel
[Top][All Lists]
Advanced

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

fix memory leaks and enable ASAN/UBSAN


From: Assaf Gordon
Subject: fix memory leaks and enable ASAN/UBSAN
Date: Thu, 2 Aug 2018 00:01:53 -0600
User-agent: NeoMutt/20170113 (1.7.2)

Hello,

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
===

Comments welcomed,
 - assaf

Attachment: sed-sanitize.patch
Description: Text Data


reply via email to

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