Chromium Code Reviews
Description[corelib] Add explicit overflow checks to int.parse
In the --limit-ints-to-64-bits mode, when Dart integers are limited
to 64 bits, int.parse() should detect and reject large integers.
This CL adds explicit overflow checks into int.parse() implementation.
R=lrn@google.com, zra@google.com
Issue: https://github.com/dart-lang/sdk/issues/30103
Committed: https://github.com/dart-lang/sdk/commit/b64014c624ea51a0cf194c3d29fd7d16cd0a8cd6
Patch Set 1 #
Total comments: 15
Patch Set 2 : Table of overflow limits is filled lazily, limit for smi is also cached #Patch Set 3 : Copyright year corrected #Patch Set 4 : Comments in Dart are converted to doc-comments #
Messages
Total messages: 11 (2 generated)
|
|||||||||||||||||||||||||||||||||||||