On 3/11/22 10:49, Ilya Leoshkevich wrote:
+    size_t length = 0x100000006;
+    unsigned char *buf;
+    int i;
+
+    buf = mmap(NULL, length, PROT_READ | PROT_WRITE | PROT_EXEC,
+               MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
+    assert(buf != MAP_FAILED);

I'm thinking exit success here, as such a large allocation may well fail depending on the host.


r~

Reply via email to