kernel32: CompareStringW should abort on the first nonmatching character to avoid invalid memory access.

Sebastian Lackner sebastian at fds-team.de
Sat Nov 14 22:57:14 CST 2015


On 13.11.2015 13:36, Dmitry Timoshkov wrote:
> For bug 37556.
> 
> Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
> ---
>  libs/wine/sortkey.c | 15 ++++++---------
>  1 file changed, 6 insertions(+), 9 deletions(-)
> 

Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>

The patch looks correct, but of course I'll leave it up to Alexandre if it should be
merged before 1.8. The bug has priority minor because there isn't any known real world
application.

Please note that the patch is not a NOOP though, it fixes two of the following tests:
https://newtestbot.winehq.org/JobDetails.pl?Key=18252




More information about the wine-patches mailing list