DescriptionMake ThreadData::random_number_ an unsigned integer so that overflow has defined behavior.
The problem has been spotted by UBSan in base_unittests:
[ RUN ] FileProxyTest.SetLength_Expand
../../base/tracked_objects.cc:457:18: runtime error: signed integer overflow: 1517486279 + 2147483647 cannot be represented in type 'int'
[ OK ] FileProxyTest.SetLength_Expand (2 ms)
R=jar@chromium.org
TBR=darin@chromium.org
BUG=none
Committed: https://crrev.com/f7812575621806b0994ff4f96db61de3c0962fd1
Cr-Commit-Position: refs/heads/master@{#303893}
Patch Set 1 #
Messages
Total messages: 12 (4 generated)
|