DescriptionFix parseHTMLInteger
In r423595 I made a change that caused toIntegralType to be called with
input std::numeric_limits<int>::min which it can't handle because it relies
on an intermediate integer to store the value. So inline the calculation and
use an unsigned integer for the calculation, casting to int when returning.
BUG=654324
Committed: https://crrev.com/cbfd866cbc7981e453dfd9afae669daa567b5cb2
Cr-Commit-Position: refs/heads/master@{#425055}
Patch Set 1 #Patch Set 2 : Fix steps #Patch Set 3 : Add unit test #Patch Set 4 : Fix warning on win #Patch Set 5 : Try to fix warning for test #
Messages
Total messages: 20 (11 generated)
|