From: Thomas Faber Date: Sun, 11 Jun 2017 06:53:28 +0000 (+0000) Subject: [WIN32K:NTUSER] X-Git-Tag: ReactOS-0.4.6~353 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=fbfe11f633e8b0035a433e1d7d19566d7b89024c [WIN32K:NTUSER] - Initialize BITMAPINFOHEADER::biSize before calling GreGetDIBitsInternal in IntSynthesizeDib. Fixes use of uninitialized memory and subsequent stack buffer overflow. CORE-13408 svn path=/trunk/; revision=74991 --- diff --git a/reactos/win32ss/user/ntuser/clipboard.c b/reactos/win32ss/user/ntuser/clipboard.c index e6809f4087a..4de67661d9e 100644 --- a/reactos/win32ss/user/ntuser/clipboard.c +++ b/reactos/win32ss/user/ntuser/clipboard.c @@ -154,6 +154,7 @@ IntSynthesizeDib( } /* Get information about the bitmap format */ + pbmi->bmiHeader.biSize = sizeof(bmiBuffer.bmih); iResult = GreGetDIBitsInternal(hdc, hbm, 0,