[corlib] ParseNumber.StringToInt now check for overflows.
authorMarcos Henrich <marcos.henrich@xamarin.com>
Mon, 6 Apr 2015 18:23:36 +0000 (19:23 +0100)
committerMarcos Henrich <marcos.henrich@xamarin.com>
Tue, 7 Apr 2015 18:38:37 +0000 (19:38 +0100)
commit6d778d70bfd06696841df7e091899897a7f4f665
tree5c7e4cc9f8dea301c14cf5636986b86fb14103e5
parent9abdfead5cf18b1577820622e0fdf01c161b764f
[corlib] ParseNumber.StringToInt now check for overflows.
The overflow check is only performed when the result is big enough.
The overflow check is done by decomposing 64 bit operations into 32 bit operations.
Fixes #17817.
mcs/class/corlib/ReferenceSources/ParseNumbers.cs