diff options
-rw-r--r-- | Tests/Kernel/elf-execve-mmap-race.cpp | 2 | ||||
-rw-r--r-- | Tests/Kernel/nanosleep-race-outbuf-munmap.cpp | 2 | ||||
-rw-r--r-- | Tests/Kernel/null-deref-close-during-select.cpp | 1 | ||||
-rw-r--r-- | Tests/Kernel/path-resolution-race.cpp | 1 | ||||
-rw-r--r-- | Tests/Kernel/uaf-close-while-blocked-in-read.cpp | 1 |
5 files changed, 0 insertions, 7 deletions
diff --git a/Tests/Kernel/elf-execve-mmap-race.cpp b/Tests/Kernel/elf-execve-mmap-race.cpp index 69ea4993df..5254fac3e5 100644 --- a/Tests/Kernel/elf-execve-mmap-race.cpp +++ b/Tests/Kernel/elf-execve-mmap-race.cpp @@ -123,7 +123,6 @@ int main() hax = !hax; usleep(1); } - return nullptr; }, &writable_program_headers[0]); @@ -139,5 +138,4 @@ int main() printf("waitpid\n"); waitpid(-1, nullptr, 0); } - return 0; } diff --git a/Tests/Kernel/nanosleep-race-outbuf-munmap.cpp b/Tests/Kernel/nanosleep-race-outbuf-munmap.cpp index f2e1189799..e598b22083 100644 --- a/Tests/Kernel/nanosleep-race-outbuf-munmap.cpp +++ b/Tests/Kernel/nanosleep-race-outbuf-munmap.cpp @@ -55,7 +55,6 @@ static void* yanker_fn(void* shared_) if (child_pid < 0) { printf("Yanker: Fork failed: %d\n", child_pid); pthread_exit(nullptr); // See below - return nullptr; } if (child_pid > 0) { @@ -63,7 +62,6 @@ static void* yanker_fn(void* shared_) // FIXME: LibPthread bug: returning during normal operation causes nullptr deref. // Workaround: Exit manually. pthread_exit(nullptr); - return nullptr; } // Give parent *thread* a moment to die. diff --git a/Tests/Kernel/null-deref-close-during-select.cpp b/Tests/Kernel/null-deref-close-during-select.cpp index dc79a8a30e..f805ed22c4 100644 --- a/Tests/Kernel/null-deref-close-during-select.cpp +++ b/Tests/Kernel/null-deref-close-during-select.cpp @@ -22,7 +22,6 @@ int main(int, char**) printf("ST: close()\n"); close(pipefds[1]); pthread_exit(nullptr); - return nullptr; }, nullptr); diff --git a/Tests/Kernel/path-resolution-race.cpp b/Tests/Kernel/path-resolution-race.cpp index a26b5c8067..0abf5e088b 100644 --- a/Tests/Kernel/path-resolution-race.cpp +++ b/Tests/Kernel/path-resolution-race.cpp @@ -18,5 +18,4 @@ int main() for (;;) { chdir("/tmp/x"); } - return 0; } diff --git a/Tests/Kernel/uaf-close-while-blocked-in-read.cpp b/Tests/Kernel/uaf-close-while-blocked-in-read.cpp index f02881f52c..70d38d76d5 100644 --- a/Tests/Kernel/uaf-close-while-blocked-in-read.cpp +++ b/Tests/Kernel/uaf-close-while-blocked-in-read.cpp @@ -23,7 +23,6 @@ int main(int, char**) close(pipefds[0]); close(pipefds[1]); pthread_exit(nullptr); - return nullptr; }, nullptr); |