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-08-07 11:58:37 +08:00
2016-06-13 07:24:26 -07:00
2017-02-07 01:08:51 -08:00
2016-09-16 12:13:02 +08:00
2016-02-02 18:20:36 +08:00
2016-04-06 01:16:00 +08:00
2018-01-13 12:51:24 +08:00