f352f9e5e2
This reverts commitaf4a3112c4as it broke asan linux bot. Reason for revert: <INSERT REASONING HERE> Original change's description: > Reland "fix hanging of write on Windows" > > This is a reland ofeb075dcc21> > Original change's description: > > 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> > > Bug: https://github.com/dart-lang/sdk/issues/40339 > Change-Id: I5a07c58709c62b996a55a76272636602dc80e20d > Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/134783 > Commit-Queue: Zichang Guo <zichangguo@google.com> > Reviewed-by: Siva Annamalai <asiva@google.com> TBR=zra@google.com,asiva@google.com,zichangguo@google.com Change-Id: I5f53e42c56859a46e9fe40e1a1e7fba541e5378e No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: https://github.com/dart-lang/sdk/issues/40339 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/135260 Reviewed-by: Alexander Aprelev <aam@google.com> Commit-Queue: Alexander Aprelev <aam@google.com>