Alexandre Julliard pushed to branch master at wine / wine
Commits: 93d9c4c8 by chenzhengyong at 2025-11-04T22:56:33+01:00 windowscodecs: Fix off-by-one check in IcoDecoder_GetFrame.
The frame index should be strictly less than idCount. Previously, an index equal to idCount was not rejected, leading to an out-of-range access.
Adjusted the returned error code to match Windows behavior and added corresponding test cases.
Signed-off-by: chenzhengyong chenzhengyong@uniontech.com
- - - - -
2 changed files:
- dlls/windowscodecs/icoformat.c - dlls/windowscodecs/tests/icoformat.c
View it on GitLab: https://gitlab.winehq.org/wine/wine/-/commit/93d9c4c8370ae7e54d5e6a389673bb7...