We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36bce68 commit 06b1f11Copy full SHA for 06b1f11
libc/src/__support/OSUtil/linux/auxv.h
@@ -16,6 +16,7 @@
16
17
#include <linux/auxvec.h> // For AT_ macros
18
#include <linux/mman.h> // For mmap flags
19
+#include <linux/param.h> // For EXEC_PAGESIZE
20
#include <linux/prctl.h> // For prctl
21
#include <sys/syscall.h> // For syscall numbers
22
@@ -90,7 +91,7 @@ LIBC_INLINE void Vector::fallback_initialize_unsync() {
90
91
PROT_READ | PROT_WRITE,
92
MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
93
// We do not proceed if mmap fails.
- if (mmap_ret <= 0)
94
+ if (mmap_ret <= 0 && mmap_ret > -EXEC_PAGESIZE)
95
return;
96
97
// Initialize the auxv array with AT_NULL entries.
0 commit comments