Module: wine Branch: oldstable Commit: 1861b18070585496f2368c44d249121fa4a271a6 URL: https://gitlab.winehq.org/wine/wine/-/commit/1861b18070585496f2368c44d249121...
Author: Esme Povirk esme@codeweavers.com Date: Sat May 21 15:17:35 2022 -0500
wmphoto: Zero user buffer before calling jxrlib Copy.
Signed-off-by: Esme Povirk esme@codeweavers.com Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51788 (cherry picked from commit 5aa05728a5fb998a3c9dd7aebc9e3ab75acc7742) Signed-off-by: Michael Stefaniuc mstefani@winehq.org
---
dlls/wmphoto/jxrlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wmphoto/jxrlib.c b/dlls/wmphoto/jxrlib.c index 3d7dedb869d..d4ac02e5918 100644 --- a/dlls/wmphoto/jxrlib.c +++ b/dlls/wmphoto/jxrlib.c @@ -271,7 +271,7 @@ static HRESULT CDECL wmp_decoder_copy_pixels(struct decoder *iface, UINT frame, pkrect.Width = This->frame.width; pkrect.Height = This->frame.height; This->frame_stride = (This->frame.width * This->frame.bpp + 7) / 8; - if (!(frame_data = RtlAllocateHeap(GetProcessHeap(), 0, This->frame.height * This->frame_stride))) + if (!(frame_data = RtlAllocateHeap(GetProcessHeap(), HEAP_ZERO_MEMORY, This->frame.height * This->frame_stride))) return E_FAIL; if (This->decoder->Copy(This->decoder, &pkrect, frame_data, stride)) {