shithub: libmujs

Download patch

ref: 4484271999bcded9ada0a76a5706235ca43b96e1
parent: c90c32326ed81e93bbb0474d947bd7f1880f50f9
author: Tor Andersson <tor@ccxvii.net>
date: Tue Apr 19 11:36:41 EDT 2016

Fix typo in parseInt: radix was limited to 2-32 but it should be 2-36.

--- a/jsbuiltin.c
+++ b/jsbuiltin.c
@@ -50,7 +50,7 @@
 			s += 2;
 			radix = 16;
 		}
-	} else if (radix < 2 || radix > 32) {
+	} else if (radix < 2 || radix > 36) {
 		js_pushnumber(J, NAN);
 		return;
 	}