028d37e39f
The startup info structure includes a pointer to an array of IO handles; this was made from the address of a local variable with a scope that ended before the call to CreateProcessW, leading to undefined behavior. In practice this appears to have mostly been working, but it reliably fails under some build configurations of Flutter using clang. This gives that array the same lifetime as the rest of the arguments to CreateProcessW. Change-Id: I3142353fd19004372a771e0cbaf0ed846ae73b5c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144520 Commit-Queue: Siva Annamalai <asiva@google.com> Reviewed-by: Siva Annamalai <asiva@google.com>