CVSROOT: /cvs Module name: src Changes by: tob...@cvs.openbsd.org 2018/03/27 04:00:16
Modified files: usr.bin/apply : apply.c Added files: regress/usr.bin/apply: Makefile t1.in t1.out t2.out t3.out t4.out t5.out t6.out Log message: Fix possibly wrong execution of commands and out of boundary write with unusual input. Correction and regression tests based on FreeBSD bin/95079. While at it, fix another segmentation fault when using ' ' as magic character and also disallow '\0' as magic character. This cannot make any sense and avoids a theoretical out of boundary read. ok tb@