[PATCH v3] gdi32/tests: Reserve sufficient room for DIB data.

Jeff Smith whydoubt at gmail.com
Mon Nov 25 10:46:16 CST 2019


Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48054
Signed-off-by: Jeff Smith <whydoubt at gmail.com>
---
 dlls/gdi32/tests/bitmap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/gdi32/tests/bitmap.c b/dlls/gdi32/tests/bitmap.c
index 8fe160546c..8f0f6601b3 100644
--- a/dlls/gdi32/tests/bitmap.c
+++ b/dlls/gdi32/tests/bitmap.c
@@ -913,7 +913,7 @@ static void test_dibsections(void)
 static void test_dib_formats(void)
 {
     BITMAPINFO *bi;
-    char data[256];
+    char data[2048];  /* 2 x 2 pixels, max 64 bits-per-pixel, max 64 planes */
     void *bits;
     int planes, bpp, compr, format;
     HBITMAP hdib, hbmp;
-- 
2.23.0




More information about the wine-devel mailing list