dart-sdk/sdk/lib/_internal
Lasse R.H. Nielsen 2dcc064916 Add range-check to DateTime.fromMillisecondsSinceEpoch on VM.
The current constructor allowed large numbers which overflows
when multiplied by 1000 to get microseconds, which then hid the
fact that the original value was out of range.

Now checks directly in the `fromMillisecondsSinceEpoch` constructor,
before multiplying by 1000.

Fixes #46966

BUG= http://dartbug.com/46966
TEST= Regression test added to date_time_test.dart

Change-Id: I4c6448666a49d51c285bd538e05e51a141b3b0b2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/214641
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
Reviewed-by: Nate Bosch <nbosch@google.com>
2021-10-11 14:31:37 +00:00
..
js_dev_runtime [ddc] Refactor _isFunctionSubtype 2021-10-08 22:33:48 +00:00
js_runtime [io/unix_domain_socket] Add support for sending/receiving open files, sockets, std streams via sockets. 2021-10-08 15:46:23 +00:00
sdk_library_metadata [dart2js] Add dart:_dart2js_runtime_metrics library and package 2021-08-03 18:25:00 +00:00
vm Add range-check to DateTime.fromMillisecondsSinceEpoch on VM. 2021-10-11 14:31:37 +00:00
allowed_experiments.json Remove references to triple-shift and generic-metadata experiments. 2021-05-12 13:35:00 +00:00
fix_data.yaml Remove duplicated FileMode fixes 2021-10-11 13:58:43 +00:00