You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The docs say that the size is written on failure, but in practice it is also written on success and we rely on that. See #141244 and rust-lang/miri#4332.
We shouldn't use system APIs outside their documented contract, so we should either adjust our implementation or get Microsoft to update the docs to promise this behavior we have been relying on.
jieyouxu
added
C-bug
Category: This is a bug.
and removed
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
labels
May 20, 2025
The docs say that the size is written on failure, but in practice it is also written on success and we rely on that. See #141244 and rust-lang/miri#4332.
We shouldn't use system APIs outside their documented contract, so we should either adjust our implementation or get Microsoft to update the docs to promise this behavior we have been relying on.
Cc @ChrisDenton
The text was updated successfully, but these errors were encountered: