Florin Malita 8269bc2bc2 Prevent int underflow when parsing exponents
When parsing negative exponents, the current implementation takes
precautions for |exp| to not underflow int.

But that is not sufficient: later on [1], |exp + expFrac| is also
stored to an int - so we must ensure that the sum stays within int
representable values.

Update the exp clamping logic to take expFrac into account.

[1] https://github.com/Tencent/rapidjson/blob/master/include/rapidjson/reader.h#L1690
2018-05-15 22:48:07 -04:00
..
2017-09-29 15:26:24 +08:00
2017-09-29 19:13:29 +08:00
2017-12-22 19:24:15 +01:00
2016-02-02 18:20:36 +08:00
2018-02-19 06:42:52 -05:00
2018-04-09 15:47:17 +02:00
2017-09-29 18:19:41 +08:00
2016-09-22 18:11:22 +08:00
2018-04-09 15:47:17 +02:00