Fail if a PT_LOAD segment has a memory size of 0. This prevents a panic
authorkettenis <kettenis@openbsd.org>
Fri, 20 Jul 2018 21:48:27 +0000 (21:48 +0000)
committerkettenis <kettenis@openbsd.org>
Fri, 20 Jul 2018 21:48:27 +0000 (21:48 +0000)
commit65ea7d4ad3844057e537c76a7486b4d871f7a8b2
treee5bfde1c9deb3103a0e701cdaa5161d6de8883e5
parent2a384edf8af72b3e44964db0e1a859558de39196
Fail if a PT_LOAD segment has a memory size of 0.  This prevents a panic
later on, and it makes no sense for a binary to have such a segment.

ok bluhm@, guenther@
sys/kern/exec_elf.c