Now we use p_filesz - 1 to test for NUL check that p_filesz is
authorjsg <jsg@openbsd.org>
Thu, 30 Apr 2015 11:15:28 +0000 (11:15 +0000)
committerjsg <jsg@openbsd.org>
Thu, 30 Apr 2015 11:15:28 +0000 (11:15 +0000)
commitc0aa15fa61946e88140dab328b206e0dcb2ba7c1
tree8213ad119bb3b73ed106d9da8c12103573731985
parentc7bdea979dfce216d06fe192fb07d4a433845ff0
Now we use p_filesz - 1 to test for NUL check that p_filesz is
at least two and while here allow the upper bound to be
MAXPATHLEN by changing a >= to > as suggested by krw@ in a thread
on tech where Maxime Villard proposed additional PT_INTERP checks.

tested by and ok guenther@
sys/kern/exec_elf.c