projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ad9a1d
)
[WIN32SS][NTGDI] Fix NtGdiSetBitmapBits in buffer size (#1313)
author
Katayama Hirofumi MZ
<katayama.hirofumi.mz@gmail.com>
Sun, 27 Jan 2019 08:44:34 +0000
(17:44 +0900)
committer
GitHub
<noreply@github.com>
Sun, 27 Jan 2019 08:44:34 +0000
(17:44 +0900)
Let NtGdiSetBitmapBits function fail if buffer size was greater than 564. CORE-15657
win32ss/gdi/ntgdi/bitmaps.c
patch
|
blob
|
history
diff --git
a/win32ss/gdi/ntgdi/bitmaps.c
b/win32ss/gdi/ntgdi/bitmaps.c
index
c982599
..
b12603d
100644
(file)
--- a/
win32ss/gdi/ntgdi/bitmaps.c
+++ b/
win32ss/gdi/ntgdi/bitmaps.c
@@
-617,6
+617,12
@@
NtGdiSetBitmapBits(
return 0;
}
+ /* 565 is confirmed value in Win2k3 */
+ if (Bytes >= 565)
+ {
+ return 0;
+ }
+
if (GDI_HANDLE_IS_STOCKOBJ(hBitmap))
{
return 0;