Re: user32: fix potential crash when loading unsupported files (with tests)
3 Aug
2011
3 Aug
'11
6:19 p.m.
Vitaly Perov <vitperov(a)etersoft.ru> writes:
@@ -1002,6 +1002,54 @@ static unsigned char gif4pixel[42] = { 0x02,0x00,0x00,0x02,0x03,0x14,0x16,0x05,0x00,0x3b };
+/* Corrupted images */ +/* 1x1 pixel corrupted bmp */ +static unsigned char corruptedbmpimage[38] = { +0x42,0x4d,0x26,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x22,0x00,0x00,0x00,0x0c,0x00, +0x00,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0xff,0xff,0xff,0x00,0x55,0x55, +0x55,0x00,0x00,0x00,0x00,0x00 +};
You should modify the data in place like other tests already do. There's no reason to duplicate it all. -- Alexandre Julliard julliard(a)winehq.org
5248
Age (days ago)
5248
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard