Hi Paul,

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

> The answer is "no". I reproduced the problem, and as Collin said it
> was due to an old Gnulib version.
>
> As far as I can see this isn't a real security violation on practical
> platforms. However, it does violate the C standard and some checking
> platforms will diagnose the violation.
>
> To fix the problem I installed the attached patches to Bison master.
> The first one should fix the bug. The rest fix all the problems I
> noticed when trying to build using Clang 19.1.7 on Fedora 41 using
> -fsanitize=undefined, or using GCC 14.2.1 with --enable-gcc-warnings.

Thanks for checking this and fixing it.

Bison hasn't been touched in some time so there was probably some other
Gnulib bugs that got fixed with the update.

You might want to update copyright headers now that you have made some
changes.

   Copyright (C) 2000-2007, 2009-2015, 2018-2022 Free Software
   Foundation, Inc.

Collin

Reply via email to