Change #286581
| Category | gcoreutils |
| Changed by | Ismail Ramzi <ismail@bugqore.com> |
| Changed at | Fri 16 Oct 2026 22:57:23 |
| Repository | git://git.savannah.gnu.org/coreutils.git |
| Project | gcoreutils |
| Branch | master |
| Revision | e9381ce5c7089e7bc05f1a2dec4a6a1365c7cfb6 |
Comments
maint: use to_uchar before isspace in --help markup oputs_() scans the option text of translated usage strings and passes each char directly to isspace(). Translated help text routinely holds bytes >= 0x80, which are negative where char is signed, so isspace() is called with a value outside its defined domain (unsigned char or EOF), which is undefined behavior. Route the arguments through to_uchar() as done for ctype calls elsewhere in src/. * src/system.h (oputs_): Pass isspace() arguments through to_uchar(). Copyright-paperwork-exempt: Yes Link: https://github.com/coreutils/coreutils/pull/381
Changed files
- src/system.h