Re: [PATCH 1/2] user32: make DIB_GetBitmapInfo checks stricter
23 Feb
2011
23 Feb
'11
9:23 p.m.
Wolfram Sang <wolfram(a)the-dreams.de> writes:
@@ -988,6 +988,9 @@ static void test_LoadImage(void) bmpimage[0x18]++; /* biWidth > 65535 */ test_LoadImageFile("BMP (too wide)", bmpimage, sizeof(bmpimage), "bmp", 0); bmpimage[0x18]--; + bmpimage[0x11]++; /* biSize > 2^24 */ + test_LoadImageFile("BMP (broken biSize)", bmpimage, sizeof(bmpimage), "bmp", 0); + bmpimage[0x11]--;
That's not a very convincing test. You should test more interesting sizes like intermediate values, off-by-one, etc. -- Alexandre Julliard julliard(a)winehq.org
5409
Age (days ago)
5409
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard