shithub: libmujs

Download patch

ref: e38bff1f68b17b98364764ec70cb0f06405759c5
parent: 833b6f1672b4f2991a63c4d05318f0b84ef4d550
author: Tor Andersson <[email protected]>
date: Wed Apr 21 11:07:16 EDT 2021

... and leave a bit of margin.

--- a/jsdtoa.c
+++ b/jsdtoa.c
@@ -691,7 +691,7 @@
 			}
 			expSign = FALSE;
 		}
-		while ((*p >= '0') && (*p <= '9') && exp < INT_MAX/10) {
+		while ((*p >= '0') && (*p <= '9') && exp < INT_MAX/100) {
 			exp = exp * 10 + (*p - '0');
 			p += 1;
 		}