Yifeng Li 3ab5b78c47 sys-devel/flex: fix crash on Apple M1 due to undefined behavior.
Currently, when the NULL-terminated variadic function
filter_create_ext() is invoked, the value "0" is passed as
the last argument to act as a terminator. However, this is
an integer value, which is incompatible with the pointer
data type expected by filter_create_ext().

This is undefined behavior in C, correct operation is not
guaranteed. In fact, it causes flex to crash on Apple M1
when GCC is used - the loop is not terminated when it should,
instead, it keeps running, corrupting the argument list for
invoking m4. As a result, it creates the following error:

> flex: fatal internal error, exec of gm4 failed

This commit fixes the problem by explicitly casting the value
0 to the correct pointer type (char *).

Since the existence of the bug doesn't always prevent a Gentoo
Prefix bootstrapping, it can lurk inside the system and remain
undetected, furthermore, it's technically a C programming bug,
other platforms could've been affected as well in theory. Thus,
we also bump the package version.

Closes: https://bugs.gentoo.org/871324
Signed-off-by: Yifeng Li <tomli@tomli.me>
Signed-off-by: Sam James <sam@gentoo.org>
2023-02-20 13:48:16 +00:00
2023-02-19 18:37:47 +00:00
2023-02-17 17:43:12 +01:00
2023-02-17 05:09:39 +00:00
2023-02-20 01:53:40 +01:00
2023-02-03 11:05:51 +00:00
2023-02-16 04:12:26 +00:00
2023-02-19 19:30:56 +00:00
2023-02-08 18:36:17 +01:00
2023-02-06 21:16:52 +01:00
2023-02-20 13:08:37 +01:00
2023-02-10 22:31:44 +07:00
2023-02-01 02:06:35 +01:00
2023-02-19 09:57:23 +01:00
2023-02-20 04:36:29 -05:00
2023-02-19 14:24:15 +01:00
2023-02-20 08:03:16 +01:00
2023-01-29 13:17:35 +01:00
2023-02-16 03:26:29 +00:00
2023-02-03 12:45:31 +00:00
2023-02-17 08:11:56 +00:00
2023-02-20 09:35:48 +00:00
2023-02-09 17:52:33 +02:00
2023-02-15 19:51:21 +08:00
2023-02-19 10:44:59 -06:00
2023-02-09 19:59:53 +02:00
2023-02-20 08:37:46 +01:00
2023-02-19 19:30:57 +00:00
2023-02-11 19:01:32 +08:00
2023-02-16 10:32:59 -05:00
2023-02-20 14:00:47 +02:00
2023-02-18 18:57:56 -06:00
2023-02-05 20:14:34 +00:00
S
Description
No description provided
9.8 GiB
Languages
Shell 98%
Roff 1.4%
Emacs Lisp 0.2%
C 0.1%