https://bugs.winehq.org/show_bug.cgi?id=34052
--- Comment #46 from Matteo Bruni matteo.mystral@gmail.com --- Created attachment 51668 --> https://bugs.winehq.org/attachment.cgi?id=51668 Range check relative array accesses
I'm attaching an alternative fix from bug 38711. This one SHOULD work without regressions but it will probably have somewhat of a performance impact. AFAICS not even ARB_robust_buffer_access_behavior guarantees any specific result. From the spec: "Out-of-bounds reads return undefined values".
I'm not sure we want this patch in Wine but I don't know of any other "safe" fix.