]> Zhao Yanbai Git Server - minix.git/commit
servers/rs: Add sanity check on executable size
authorLionel Sambuc <lionel@minix3.org>
Wed, 30 Jul 2014 14:10:03 +0000 (16:10 +0200)
committerLionel Sambuc <lionel@minix3.org>
Thu, 31 Jul 2014 14:00:32 +0000 (16:00 +0200)
commit37f29f557ab17227a82345b4118d57de4d9ea8e9
treee58bae5fba730bbdd6389dbd20c1a73e3a80e8fb
parentf1778d4cdd8cfab9d4cca32b58e4696ceb24b872
servers/rs: Add sanity check on executable size

RS used to do a stat, and check that the stat was successful, but it
didn't check that the executable was not actually empty.

This patch adds a check to detect file which are smaller than the minimum
ELF size possible.

Change-Id: I22b004084f17e7d395e2c1377add7bc8b51c3d5e
minix/lib/libexec/exec_elf.c
minix/servers/rs/manager.c