ref: 8c805b4eb19cf2af689c860b77e6111d2ee439d5
parent: a3a4fe840b80706c706e86160352af5936f292d8
author: Tor Andersson <tor.andersson@artifex.com>
date: Wed Sep 21 11:21:04 EDT 2016
Fix bug 697140: Overflow check in ascii division in strtod.
--- a/jsdtoa.c
+++ b/jsdtoa.c
@@ -735,6 +735,7 @@
n -= c<<b;
*p++ = c + '0';
(*na)++;
+ if (*na >= Ndig) break; /* abort if overflowing */
}
*p = 0;
}