Annotation of /trunk/libwmf/patches/libwmf-0.2.8.4-CVE-2007-3473.patch
Parent Directory | Revision Log
Revision 2938 -
(hide annotations)
(download)
Tue May 30 10:46:40 2017 UTC (6 years, 11 months ago) by niro
File size: 349 byte(s)
Tue May 30 10:46:40 2017 UTC (6 years, 11 months ago) by niro
File size: 349 byte(s)
-added a bunch of security patches
1 | niro | 2938 | --- libwmf-0.2.8.4/src/extra/gd/gd.c |
2 | +++ libwmf-0.2.8.4/src/extra/gd/gd.c | ||
3 | @@ -2483,6 +2483,10 @@ BGD_DECLARE(gdImagePtr) gdImageCreateFromXbm (FILE * fd) | ||
4 | } | ||
5 | bytes = (w * h / 8) + 1; | ||
6 | im = gdImageCreate (w, h); | ||
7 | + if (!im) { | ||
8 | + return 0; | ||
9 | + } | ||
10 | + | ||
11 | gdImageColorAllocate (im, 255, 255, 255); | ||
12 | gdImageColorAllocate (im, 0, 0, 0); | ||
13 | x = 0; |