Require a PT_LOAD segment's p_filesz to be no larger than its p_memsz.
authorguenther <guenther@openbsd.org>
Sun, 26 Apr 2015 05:30:42 +0000 (05:30 +0000)
committerguenther <guenther@openbsd.org>
Sun, 26 Apr 2015 05:30:42 +0000 (05:30 +0000)
commit1fec3ba2823248e1f08dbe6629855a883be9bf7b
tree1afb4258833a05147c0f32fae7c1a3dca095eb4e
parentccc73f79b0869afbb2bbe200544b35188f5f29c9
Require a PT_LOAD segment's p_filesz to be no larger than its p_memsz.

test cases provided by Alejandro Herna'ndez (nitrousenador (at) gmail.com)
ok deraadt@ jsg@
sys/kern/exec_elf.c