~ubuntu-branches/ubuntu/maverick/libpng/maverick-security

« back to all changes in this revision

Viewing changes to pngset.c

  • Committer: Bazaar Package Importer
  • Author(s): Anibal Monsalve Salazar
  • Date: 2010-03-03 16:44:47 UTC
  • mfrom: (1.1.12 upstream) (15.2.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100303164447-2w5p75b0cfsrft5t
Tags: 1.2.43-1
* New upstream release 
* Fix CVE-2010-0205 and Cert VU#576029
  http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-0205
  https://www.kb.cert.org/vuls/id/576029
  Do not stall and consume large quantities of memory while processing
  certain Portable Network Graphics (PNG) files
  Closes: 572308

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
2
/* pngset.c - storage of image information into info struct
3
3
 *
4
 
 * Last changed in libpng 1.2.42 [January 3, 2010]
 
4
 * Last changed in libpng 1.2.43 [February 25, 2010]
5
5
 * Copyright (c) 1998-2010 Glenn Randers-Pehrson
6
6
 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
7
7
 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
1144
1144
}
1145
1145
#endif
1146
1146
 
1147
 
#ifdef PNG_WRITE_SUPPORTED
1148
1147
void PNGAPI
1149
1148
png_set_compression_buffer_size(png_structp png_ptr,
1150
1149
    png_uint_32 size)
1157
1156
    png_ptr->zstream.next_out = png_ptr->zbuf;
1158
1157
    png_ptr->zstream.avail_out = (uInt)png_ptr->zbuf_size;
1159
1158
}
1160
 
#endif
1161
1159
 
1162
1160
void PNGAPI
1163
1161
png_set_invalid(png_structp png_ptr, png_infop info_ptr, int mask)