Hello Sergey,

Op 23-10-2025 om 20:50 schreef Sergey Poznyakoff:
What I can propose instead, is to replace first occurrence of FORMAT with
something more explicit, say "TIME-FORMAT".

Thanks.  That will work.


By the way, when compiled with -fsanitize=address, running just
`src/tar --help` produces here this output after the help text:

=================================================================
==24894==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 109 byte(s) in 1 object(s) allocated from:
#0 0x76f93feb4c38 in __interceptor_realloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:164
    #1 0x5b7e28fd04eb in rpl_realloc stdlib.h:2095
#2 0x5b7e28fd04eb in vasnprintf /home/ben/Programoj/tar-1.35.90/gnu/vasnprintf.c:7984 #3 0x5b7e28fcb240 in vaszprintf /home/ben/Programoj/tar-1.35.90/gnu/vaszprintf.c:32

Direct leak of 14 byte(s) in 1 object(s) allocated from:
#0 0x76f93feb4887 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x5b7e28f89c0d in imalloc ../gnu/ialloc.h:57
#2 0x5b7e28f89c0d in wordsplit_finish /home/ben/Programoj/tar-1.35.90/lib/wordsplit.c:863
    #3 0x50c0000001bf  (<unknown module>)

SUMMARY: AddressSanitizer: 123 byte(s) leaked in 2 allocation(s).


Does tar aim to be leak-free?  Or isn't it worth the trouble for a
short invocation?


Benno

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to