shithub: libmujs

Download patch

ref: daa2241087dfbfab3733ff667b762b55df4b9269
parent: b06a5e9b02688e8d5c355544ce4130b4045c5c0b
author: Tor Andersson <tor.andersson@artifex.com>
date: Mon Sep 20 10:08:39 EDT 2021

Increase default string limit to 256M.

--- a/jsi.h
+++ b/jsi.h
@@ -94,7 +94,7 @@
 #define JS_ASTLIMIT 100		/* max nested expressions */
 #endif
 #ifndef JS_STRLIMIT
-#define JS_STRLIMIT (1<<16)	/* max string length */
+#define JS_STRLIMIT (1<<28)	/* max string length */
 #endif
 
 /* instruction size -- change to int if you get integer overflow syntax errors */