|
Message-ID: <CAPHLbgNyq=G7_pJ8v+04vP2z8CzqRR1M8+r==B_ECqPe5kOXrw@mail.gmail.com>
Date: Wed, 20 Jan 2021 18:45:23 +0300
From: Yuriy Chernyshov <georgthegreat@...il.com>
To: musl@...ts.openwall.com
Subject: Re: Typo in atexit.c (?)
As I see, this turned out to be a combination of a local patch applied to
atexit.c.
The patch introduces cleanup of additionally allocated fl chunks allocated
by calloc calls in __cxa_atexit.
I think I can upstream the patch upon a brief adaptation to match the
styleguide.
What do you think?
NB: I am not a subscriber of this list and would like to be cc'd with any
replies.
Thanks in advance.
Yuriy.
On Wed, 20 Jan 2021 at 16:54, Yuriy Chernyshov <georgthegreat@...il.com>
wrote:
> Hello everyone,
> 34952fe5de44a833370cbe87b63fb8eec61466d7 introduced safeguard for using of
> undefined memory (de)allocation functions:
> https://git.musl-libc.org/cgit/musl/commit/?id=34952fe5de44a833370cbe87b63fb8eec61466d7
>
> However, in src/exit/atexit.c either this commit or the code is buggy, as
> it has:
>
> #define free undef
>
> ... free(something)
>
> This results in linkage error of every program being linked to musl.
> Could you, please, advice me on how to fix this?
>
> Regards,
> Yuriy.
>
Content of type "text/html" skipped
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.