Module: wine Branch: master Commit: 5aa05728a5fb998a3c9dd7aebc9e3ab75acc7742 URL: https://source.winehq.org/git/wine.git/?a=commit;h=5aa05728a5fb998a3c9dd7aeb...
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
---
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)) {