[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#50767: 28.0.50; Warnings about snprintf in image.c on armv7l
From: |
Basil L. Contovounesios |
Subject: |
bug#50767: 28.0.50; Warnings about snprintf in image.c on armv7l |
Date: |
Thu, 14 Oct 2021 17:37:23 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Eli Zaretskii [2021-10-14 12:01 -0400] wrote:
>> From: "Basil L. Contovounesios" <contovob@tcd.ie>
>> Cc: Alan Third <alan@idiocy.org>, 50767@debbugs.gnu.org
>> Date: Thu, 14 Oct 2021 16:42:24 +0100
>>
>> > AFAIR, there's no need to check the return value of xmalloc, because
>> > it doesn't return if it cannot allocate memory.
>>
>> Are you thinking about xalloc?
>
> No, I'm thinking xmalloc.
>
>> If not, could you please point me to the part of xmalloc that
>> doesn't return (except for the !initialized branch in memory_full)?
>> I'm afraid I couldn't spot it.
>
> This part:
>
> if (!val && size)
> memory_full (size);
Sorry, I thought xsignal in memory_full would return, because I confused
it with nonlocal exits in dynamic modules which do.
Thanks,
--
Basil