bug#78882: stty.c compilation error

2025-06-23 Thread Collin Funk
Bruno Haible writes: > Yes, I had the same thought. Done through > . Thanks! That looks good. Collin

bug#78880: od Heap-buffer overflow

2025-06-23 Thread Pádraig Brady
On 23/06/2025 09:24, Jaehoon Jang wrote: = ==1151699==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x615004f9 at pc 0x004d153f bp 0x7fff937f0410 sp 0x7fff937f0408 WRITE of size 1 at 0x615004f9 thread T0 #

bug#78882: stty.c compilation error

2025-06-23 Thread Bruno Haible via GNU coreutils Bug Reports
Collin Funk wrote: > Perhaps it is worth documenting somewhere? I think Autoconf's manual has > a section of shell portability gotchas. Yes, I had the same thought. Done through . Bruno

bug#78882: stty.c compilation error

2025-06-23 Thread Pádraig Brady
On 23/06/2025 22:14, Bruno Haible via GNU coreutils Bug Reports wrote: Hi, The coreutils CI fails today on OpenBSD and Solaris. (The previous build, a week ago, succeeded.) With OpenBSD sed and Solaris sed: $ echo 100 | sed -e 's/^.*$/# ifdef B&\n case B&: return &;\n# endif/' # ifde

bug#78882: stty.c compilation error

2025-06-23 Thread Bruno Haible via GNU coreutils Bug Reports
H. Peter Anvin wrote: > Do the shells on these systems support $'\n' constants? Sure. Dollar-single-quote strings in sh are quote portable. > There is also the option of simply putting a newline in the string, I > believe. The best way to include a newline in a sed script is not to use a litera

bug#78879: Potential Out-of-Memory in coreutils od

2025-06-23 Thread Jaehoon Jang
Potential Out-of-Memory Risk in coreutils od Due to Inadequate Argument Validation for -w Option *Description* ``` $ src/od -w0 /bin/ls Aborted ``` ``` 1835if (s_err != LONGINT_OK || w_tmp <= 0) 1836xstrtol_fatal (s_err, oi, c, long_options, optarg); ``` We confirmed that when the arg

bug#78882: stty.c compilation error

2025-06-23 Thread Collin Funk
Hi Bruno, Bruno Haible via GNU coreutils Bug Reports writes: > It looks like the 'speedgen' script, added in commit > 357fda90d15fd3f7dba61e1ab322b183a48d0081, produces this invalid C code. > > With GNU sed: > > $ echo 100 | sed -e 's/^.*$/# ifdef B&\n case B&: return &;\n# endif/' > # i

bug#78882: stty.c compilation error

2025-06-23 Thread Bruno Haible via GNU coreutils Bug Reports
Hi, The coreutils CI fails today on OpenBSD and Solaris. (The previous build, a week ago, succeeded.) Compilation error on OpenBSD: cc -I. -I.. -I./lib -Ilib -I../lib -Isrc -I../src -I/usr/local/include -Wall -Wno-format-extra-args -Wno-implicit-const-int-float-conversion -Wno-tautological-