Issue Description:
On iOS 26 and later, a CoreGraphics crash occurs when rendering images using -[UIImage drawInRect:blendMode:alpha:]. Based on the call stack, the crash happens inside CoreGraphics. Under what circumstances does the function upscale_provider_get_bytes_at_position_inner in the stack get called? When attempting to reproduce locally, this code path is never reached even when scaling images.
Steps to Reproduce:
There are a large number of crash reports in production, but the issue cannot be reproduced locally/offline.
Expected Results:
Explain under what conditions calling -[UIImage drawInRect:blendMode:alpha:] will reach the upscale_provider_get_bytes_at_position_inner logic. Ideally, provide a code example or demo.
Provide the root cause of the crash and a workaround/mitigation.
Current Behavior:
Calling -[UIImage drawInRect:blendMode:alpha:] causes intermittent crashes in production.
Xcode Version Used:
Xcode Version 26.0 (17A324)
0
0
17