[Midnightbsd-cvs] [MidnightBSD/src] aab55c: spellprog: fix OOB reads and EOF slurp hang
Lucas Holt
noreply at github.com
Fri May 1 09:48:26 EDT 2026
Branch: refs/heads/master
Home: https://github.com/MidnightBSD/src
Commit: aab55c25927b81512fc280c9720ddec669537bad
https://github.com/MidnightBSD/src/commit/aab55c25927b81512fc280c9720ddec669537bad
Author: Lucas Holt <luke at foolishgames.com>
Date: 2026-05-01 (Fri, 01 May 2026)
Changed paths:
M usr.bin/spell/spellprog/Makefile
M usr.bin/spell/spellprog/spellprog.c
A usr.bin/spell/spellprog/tests/Makefile
A usr.bin/spell/spellprog/tests/spellprog_test.sh
Log Message:
-----------
spellprog: fix OOB reads and EOF slurp hang
Avoid reading before the word buffer when checking suffixes, prevent prefix-space overflow, and handle EOF while discarding overlong words. Add basic ATF regression tests.
AI-Assisted-by: GPT-5.2 (Codex CLI)
Signed-off-by: Lucas Holt <luke at foolishgames.com>
To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications
More information about the Midnightbsd-cvs
mailing list