diff options
Diffstat (limited to 'lang/spidermonkey140/files/patch-js_src_jit_ProcessExecutableMemory.h')
| -rw-r--r-- | lang/spidermonkey140/files/patch-js_src_jit_ProcessExecutableMemory.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lang/spidermonkey140/files/patch-js_src_jit_ProcessExecutableMemory.h b/lang/spidermonkey140/files/patch-js_src_jit_ProcessExecutableMemory.h new file mode 100644 index 000000000000..1f4c09b095fb --- /dev/null +++ b/lang/spidermonkey140/files/patch-js_src_jit_ProcessExecutableMemory.h @@ -0,0 +1,12 @@ +Index: js/src/jit/ProcessExecutableMemory.h +--- js/src/jit/ProcessExecutableMemory.h.orig 2022-03-30 19:25:41 UTC ++++ js/src/jit/ProcessExecutableMemory.h +@@ -14,7 +14,7 @@ namespace jit { + + // Limit on the number of bytes of executable memory to prevent JIT spraying + // attacks. +-#if JS_BITS_PER_WORD == 32 ++#if JS_BITS_PER_WORD == 32 || defined(__OpenBSD__) + static const size_t MaxCodeBytesPerProcess = 140 * 1024 * 1024; + #else + // This is the largest number which satisfies various alignment static |
