minix/lib/libexec
Ben Gras 298b41b523 libexec: detect short files
if an exec() fails partway through reading in the sections, the target
process is already gone and a defunct process remains. sanity checking
the binary beforehand helps that.

test10 mutilates binaries and exec()s them on purpose; making an exec()
fail cleanly in such cases seems like acceptable behaviour.

fixes test10 on ARM.

Change-Id: I1ed9bb200ce469d4d349073cadccad5503b2fcb0
2013-02-04 12:04:35 +01:00
..
exec_aout.c Remove ACK EM_WSIZE/EM_PSIZE macro usage 2012-08-06 17:49:22 +02:00
exec_elf.c libexec: detect short files 2013-02-04 12:04:35 +01:00
exec_general.c SYSENTER/SYSCALL support 2012-09-24 15:53:43 +02:00
libexec.h libexec: detect short files 2013-02-04 12:04:35 +01:00
Makefile Upgrading build system to new NetBSD revision 2012-11-15 16:07:29 +01:00