[PATCH] user32: Fix wsprintfA's buffer usage when using %S.

Akihiro Sagawa sagawa.aki at gmail.com
Sun Aug 2 05:39:58 CDT 2020


This fixes a regression introduced by
08bf605acb4d319e016a7eafe0c675509445bd4a.
It could lead to stack corruption because ret can be negative when the
output position, p, doesn't point the beginning of the buffer before
the inner loop.

Signed-off-by: Akihiro Sagawa <sagawa.aki at gmail.com>
---
 dlls/user32/wsprintf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-user32-Fix-wsprintfA-s-buffer-usage-when-using-S.patch
Type: text/x-patch
Size: 670 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20200802/54e81a45/attachment.bin>


More information about the wine-devel mailing list