Magellan Linux

Contents of /trunk/libwmf/patches/libwmf-0.2.8.4-CVE-2007-2756.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2938 - (show annotations) (download)
Tue May 30 10:46:40 2017 UTC (6 years, 11 months ago) by niro
File size: 511 byte(s)
-added a bunch of security patches
1 --- libwmf-0.2.8.4/src/extra/gd/gd_png.c 1 Apr 2007 20:41:01 -0000 1.21.2.1
2 +++ libwmf-0.2.8.4/src/extra/gd/gd_png.c 16 May 2007 19:06:11 -0000
3 @@ -78,8 +78,11 @@
4 gdPngReadData (png_structp png_ptr,
5 png_bytep data, png_size_t length)
6 {
7 - gdGetBuf (data, length, (gdIOCtx *)
8 - png_get_io_ptr (png_ptr));
9 + int check;
10 + check = gdGetBuf (data, length, (gdIOCtx *) png_get_io_ptr (png_ptr));
11 + if (check != length) {
12 + png_error(png_ptr, "Read Error: truncated data");
13 + }
14 }
15
16 static void