bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Integer overflows in memchr


From: Po Lu
Subject: Re: Integer overflows in memchr
Date: Sun, 30 Jun 2024 19:14:36 +0800
User-agent: Gnus/5.13 (Gnus v5.13)

Paul Eggert <eggert@cs.ucla.edu> writes:

> On 6/27/24 02:37, Po Lu wrote:
>
>> Btw, doesn't this also mean that lib/strnlen.c (in Emacs, at least) is
>> incorrect?
>
> Thanks for pointing that out. I installed the attached into Gnulib and
> propagated it into Emacs master. Although I don't know of any
> practical, supported platform where this matters, it's better to be
> safer.

I think there should be a trivial test for a functional strnlen in
strnlen.m4, since it would be terrible to duplicate what ought to be the
responsibility of Gnulib in Emacs's configure.ac.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]