Subject: bug#78880: od Heap-buffer overflow

From: Collin Funk <[email-masked]>
Date: Tue, 24 Jun 2025 09:34:05 -0700

Pádraig Brady <[email-masked]> writes:

> On 24/06/2025 15:27, Grisha Levit wrote:
>
>> This part:
>> 
>>>         tryline:
>>>     +     idx_t i = 0;
>>>     +     int c = 1; /* Init to 1 so can distinguish if NUL read. */
>> triggers
>>      warning: label followed by a declaration is a C23 extension
>> [-Wc23-extensions]
>
> OK version 3 attached which simplifies
> by removing the label and gotos entirely.

Grisha, what did you pass to ./configure?

I'm suprised we don't disable this in Gnulib. Since there we do:

    static_assert (1 < sizeof (example))

Without a second argument message string, I would expect Clang to
complain about it, unless we disable it.

Collin