[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fix memleak in getdelim.m4
From: |
Tim Rühsen |
Subject: |
Re: Fix memleak in getdelim.m4 |
Date: |
Wed, 20 May 2020 23:59:18 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 |
Hi Bruno,
On 18.05.20 21:44, Bruno Haible wrote:
> Hi Tim,
>
>>> The way to determine the answer is:
>>> 1. Create a test dir of all gnulib modules.
>>> 2. Configure it with --config-cache.
>>> 3. Configure it with --config-cache and your sanitizer options.
>>> 4. Compare the generated config.cache and config.status files.
>>
>> I am short on time and would like to prevent being distracted too much
>
> Everyone here is probably in the same situation...
>
>> If you could give me a quick instruction on how to do 1.
>
> I typically use this command:
>
> rm -rf ../testdir-all; ./gnulib-tool --create-testdir --dir=../testdir-all
> --single-configure
>
>> I'll happily
>> go for steps 2-4. I already have a fresh cloned gnulib locally.
>
> Thanks! We can then go through the findings one by one.
With my getdelim patch applied, this is the summary of sanitizer findings:
$ egrep 'SUMM|checking' config.log|grep -B1 SUMM
configure:14038: checking for working C stack overflow detection
SUMMARY: UndefinedBehaviorSanitizer: implicit-integer-sign-change
conftest.c:379:30 in
--
configure:36833: checking whether memmem works
SUMMARY: UndefinedBehaviorSanitizer: invalid-null-argument
conftest.c:513:32 in
--
configure:55268: checking whether fchownat works with AT_SYMLINK_NOFOLLOW
SUMMARY: UndefinedBehaviorSanitizer: implicit-integer-sign-change
conftest.c:812:50 in
configure:55326: checking whether fchownat works with an empty file name
SUMMARY: UndefinedBehaviorSanitizer: implicit-integer-sign-change
conftest.c:817:37 in
--
configure:67322: checking whether glob lists broken symlinks
SUMMARY: AddressSanitizer: 37 byte(s) leaked in 2 allocation(s).
--
configure:94107: checking for working re_compile_pattern
SUMMARY: AddressSanitizer: 20072 byte(s) leaked in 116 allocation(s).
The lzip'ed tar archive with all 4 files is 137k. Is it ok to send it
here or do you better like via PM ?
Regards, Tim
signature.asc
Description: OpenPGP digital signature
- Re: Fix memleak in getdelim.m4, (continued)
- Re: Fix memleak in getdelim.m4, Bruno Haible, 2020/05/18
- Re: Fix memleak in getdelim.m4, Tim Rühsen, 2020/05/19
- Re: Fix memleak in getdelim.m4, Bruno Haible, 2020/05/19
- Re: Fix memleak in getdelim.m4, Tim Rühsen, 2020/05/20
- relicense module 'group-member', Bruno Haible, 2020/05/21
- Re: relicense module 'group-member', Eric Blake, 2020/05/21
- Re: relicense module 'group-member', Jim Meyering, 2020/05/21
- Re: relicense module 'group-member', Bruno Haible, 2020/05/21
- Re: relicense module 'group-member', Paul Eggert, 2020/05/21
- Re: Fix memleak in getdelim.m4, Bruno Haible, 2020/05/21
- Re: Fix memleak in getdelim.m4,
Tim Rühsen <=
- Re: Fix memleak in getdelim.m4, Bruno Haible, 2020/05/21
- Re: Fix memleak in getdelim.m4, Tim Rühsen, 2020/05/21
- Re: Fix memleak in getdelim.m4, Bruno Haible, 2020/05/21
- Re: Fix memleak in getdelim.m4, Tim Rühsen, 2020/05/22
- Re: Fix memleak in getdelim.m4, Bruno Haible, 2020/05/22
- Re: Fix memleak in getdelim.m4, Tim Rühsen, 2020/05/22
- Fix exponentl.m4 test, Bruno Haible, 2020/05/23
- Fix calloc.m4 test, Bruno Haible, 2020/05/23
- Re: Fix calloc.m4 test, Paul Eggert, 2020/05/23
- Re: Fix calloc.m4 test, Bruno Haible, 2020/05/23