[release/8.0-staging] Fix return in zlib-intel when window allocation fails by ericstj · Pull Request #116550 · dotnet/runtime
Customer Impact
- Customer reported
- Found internally
If a process is running low on memory and fails window allocation in zlib on Windows, we weren't correctly returning the error to produce the correct ZlibException. This creates a reliability issue as the failure looks like an application crash instead of out of memory. This issue is unique to the zlib-intel codebase.
Regression
- Yes
- No
Testing
Unit tests, adhoc testing.
Risk
Low. This is likely a non-recoverable error, we're just making sure we surface in a way that diagnostics will correctly capture.