zipos sysv execve add non-resource leaking method of running APE proof of concept

This commit is contained in:
Gavin Hayes 2023-02-05 00:49:42 -05:00
parent c235065608
commit 00c4485a1d

View file

@ -72,3 +72,15 @@ TEST(execve, ziposELF) {
notpossible;
EXITS(42);
}
TEST(execve, ziposAPE) {
if (!IsLinux()) {
EXPECT_EQ(-1, execve("/zip/life-nomod.com", (char *const[]){0},
(char *const[]){0}));
return;
}
SPAWN(fork);
execve("/zip/life-nomod.com", (char *const[]){0}, (char *const[]){0});
notpossible;
EXITS(42);
}