mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 22:02:27 +00:00
GetZipCdir: prevent integer underflow. posix_spawn_test.c: stop attempting to load zipos from /usr/bin/ape. (#758)
This commit is contained in:
parent
22fcab131c
commit
c5de653b98
2 changed files with 8 additions and 7 deletions
|
@ -51,7 +51,7 @@ __attribute__((__constructor__)) static void init(void) {
|
|||
TEST(posix_spawn, test) {
|
||||
int rc, ws, pid;
|
||||
char *prog = GetProgramExecutableName();
|
||||
char *args[] = {program_invocation_name, NULL};
|
||||
char *args[] = {prog, NULL};
|
||||
char *envs[] = {"THE_DOGE=42", NULL};
|
||||
EXPECT_EQ(0, posix_spawn(&pid, prog, NULL, NULL, args, envs));
|
||||
EXPECT_NE(-1, waitpid(pid, &ws, 0));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue