Re: [PATCH] libiberty: Fix off-by-one when collecting range expression

2025-05-12 Thread Ian Lance Taylor
Andreas Schwab writes: > * regex.c (regex_compile): Don't write beyond array bounds when > collecting range expression. This is OK. Thanks. Ian

[PATCH] libiberty: Fix off-by-one when collecting range expression

2025-05-12 Thread Andreas Schwab
Fixes this error during build of fixincludes: In function ‘byte_regex_compile’, inlined from ‘xregcomp’ at ../libiberty/../../libiberty/regex.c:7973:11: ../libiberty/../../libiberty/regex.c:3477:29: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 3477 |