dart-sdk/runtime
Zichang Guo eb075dcc21 fix hanging of write on Windows
When using File::Write(), Var size in int64_t is casted to DWORD(unsigned long). When Var size is out of DWORD range, casted value will be zero. Before calling into File::Write() on Windows, validate the size.

Bug: https://github.com/dart-lang/sdk/issues/40339
Change-Id: I36fade62dfa3025f418405cb3e45c286dd6b7db1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/134440
Reviewed-by: Zach Anderson <zra@google.com>
Commit-Queue: Zichang Guo <zichangguo@google.com>
2020-02-06 19:58:52 +00:00
..
bin fix hanging of write on Windows 2020-02-06 19:58:52 +00:00
docs [vm/docs] Publish "Introduction to Dart VM" source and build tools. 2020-02-04 09:04:32 +00:00
include [vm/embedder] Add documentation to Dart_CompileToKernel 2020-01-31 15:03:42 +00:00
lib [VM/nnbd] Consider nullability of type parameters in function type tests. 2020-02-06 01:45:29 +00:00
llvm_codegen [llvm_codegen] Use exclusively SExpression support from VM and nothing else. 2019-10-30 16:27:04 +00:00
observatory [vm/aot/tfa] Tree shake write-only fields 2020-02-06 19:31:32 +00:00
platform Reland "[ VM / DartDev ] Added support for format and pub commands via standalone VM" 2020-02-06 00:04:09 +00:00
tests/vm Revert "[vm/aot] Remove object wrapping of bare instructions for AOT snapshots." 2020-02-04 17:32:28 +00:00
third_party
tools [ DartFuzz ] Disable floating point operations when comparing different architectures 2020-02-06 02:00:49 +00:00
vm [vm] Reland NNBD flag flip 2020-02-06 17:52:52 +00:00
.clang-tidy [vm] Add runtime/.clang-tidy file 2019-09-05 09:51:13 +00:00
.gitignore
BUILD.gn [vm] Reland the flag flip behind the --nnbd build flag 2020-01-30 23:41:19 +00:00
codereview.settings
configs.gni [VM/runtime] - Remove DART_NO_SNAPSHOT 2020-01-08 18:56:21 +00:00
CPPLINT.cfg
PRESUBMIT.py
runtime_args.gni [vm] DBC is obsolete. Remove dead code. 2019-10-27 18:18:29 +00:00