Fix overflow exception in StringParsingHelpers (dotnet/corefx#35098)
authorMaxim Dobryakov <closer.main@gmail.com>
Wed, 6 Feb 2019 22:04:40 +0000 (01:04 +0300)
committerTomas Weinfurt <tweinfurt@yahoo.com>
Wed, 6 Feb 2019 22:04:40 +0000 (14:04 -0800)
commitb5c0292464b378c8d49e26d30a343f3be98e2ab1
tree5878aa933b0435caff6f686b72accfedf23418b2
parentd639c55d876889035a644abcde8d1372ded91c1e
Fix overflow exception in StringParsingHelpers (dotnet/corefx#35098)

* Replace all 'int' fields to 'long' in structures related to 'StringParsingHelpers' class because some parsed values can be great than 'int.MaxValue' (dotnet/corefx#34719)

* Fix type of 'IPGlobalStatisticsTable.DefaultTtl' property

Commit migrated from https://github.com/dotnet/corefx/commit/2f8f6f1be75ea2cc8132e18de5fe8375006ca36f
src/libraries/Common/src/System/IO/RowConfigReader.cs
src/libraries/Common/tests/Tests/System/IO/RowConfigReaderTests.cs
src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/StringParsingHelpers.Statistics.cs
src/libraries/System.Net.NetworkInformation/tests/FunctionalTests/NetworkFiles/snmp
src/libraries/System.Net.NetworkInformation/tests/FunctionalTests/StatisticsParsingTests.cs