Module Name: src Committed By: riastradh Date: Sat Mar 29 19:40:42 UTC 2025
Modified Files: src/lib/libc/gen: ctype_.c tolower_.c toupper_.c src/tests/lib/libc/gen: t_ctype.c Added Files: src/lib/libc/gen: ctype_guard.h Log Message: ctype(3): Put guard pages before the C ctype/tolower/toupper tables. This also only affects machines where char is signed for now. (But maybe it would be worth doing unconditionally; users could still try to pass in explicit `signed char' inputs.) PR lib/58208: ctype(3) provides poor runtime feedback of abuse To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/lib/libc/gen/ctype_.c cvs rdiff -u -r0 -r1.1 src/lib/libc/gen/ctype_guard.h cvs rdiff -u -r1.14 -r1.15 src/lib/libc/gen/tolower_.c \ src/lib/libc/gen/toupper_.c cvs rdiff -u -r1.9 -r1.10 src/tests/lib/libc/gen/t_ctype.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.