[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
This commit is contained in:
Thomas Faber 2017-06-11 06:53:28 +00:00
parent ea1f78da72
commit fbfe11f633

View file

@ -154,6 +154,7 @@ IntSynthesizeDib(
}
/* Get information about the bitmap format */
pbmi->bmiHeader.biSize = sizeof(bmiBuffer.bmih);
iResult = GreGetDIBitsInternal(hdc,
hbm,
0,