mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-08 10:50:28 +00:00
zipos sysv execve add non-resource leaking method of running APE proof of concept
This commit is contained in:
parent
c235065608
commit
00c4485a1d
1 changed files with 12 additions and 0 deletions
|
@ -72,3 +72,15 @@ TEST(execve, ziposELF) {
|
||||||
notpossible;
|
notpossible;
|
||||||
EXITS(42);
|
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);
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue