~ubuntu-branches/debian/wheezy/libpng/wheezy

« back to all changes in this revision

Viewing changes to png.h

  • Committer: Package Import Robot
  • Author(s): Anibal Monsalve Salazar
  • Date: 2012-04-09 12:08:13 UTC
  • mfrom: (27.1.7 sid)
  • Revision ID: package-import@ubuntu.com-20120409120813-tuhq8wo3ar43x97v
Tags: 1.2.49-1
* New upstream version 1.2.49
  - Fix CVE-2011-3048 (memory corruption flaw)
    Closes: 667475
  - Don't crash with electric fence memory debugger
    Closes: 668082
* Merged upstream: 02-665208-CVE-2012-3045.patch 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* png.h - header file for PNG reference library
2
2
 *
3
 
 * libpng version 1.2.47 - February 18, 2012
 
3
 * libpng version 1.2.49 - March 29, 2012
4
4
 * Copyright (c) 1998-2012 Glenn Randers-Pehrson
5
5
 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
6
6
 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
10
10
 * Authors and maintainers:
11
11
 *  libpng versions 0.71, May 1995, through 0.88, January 1996: Guy Schalnat
12
12
 *  libpng versions 0.89c, June 1996, through 0.96, May 1997: Andreas Dilger
13
 
 *  libpng versions 0.97, January 1998, through 1.2.47 - February 18, 2012: Glenn
 
13
 *  libpng versions 0.97, January 1998, through 1.2.49 - March 29, 2012: Glenn
14
14
 *  See also "Contributing Authors", below.
15
15
 *
16
16
 * Note about libpng version numbers:
275
275
 *    1.0.57rc01              10    10057  10.so.0.57[.0]
276
276
 *    1.2.47                  13    10247  12.so.0.47[.0]
277
277
 *    1.0.57                  10    10057  10.so.0.57[.0]
 
278
 *    1.2.48beta01            13    10248  12.so.0.48[.0]
 
279
 *    1.2.48rc01-02           13    10248  12.so.0.48[.0]
 
280
 *    1.0.58                  10    10058  10.so.0.58[.0]
 
281
 *    1.2.48                  13    10248  12.so.0.48[.0]
 
282
 *    1.2.49rc01              13    10249  12.so.0.49[.0]
 
283
 *    1.0.59                  10    10059  10.so.0.59[.0]
 
284
 *    1.2.49                  13    10249  12.so.0.49[.0]
278
285
 *
279
286
 *    Henceforth the source version will match the shared-library major
280
287
 *    and minor numbers; the shared-library major version number will be
306
313
 *
307
314
 * This code is released under the libpng license.
308
315
 *
309
 
 * libpng versions 1.2.6, August 15, 2004, through 1.2.47, February 18, 2012, are
 
316
 * libpng versions 1.2.6, August 15, 2004, through 1.2.49, March 29, 2012, are
310
317
 * Copyright (c) 2004, 2006-2011 Glenn Randers-Pehrson, and are
311
318
 * distributed according to the same disclaimer and license as libpng-1.2.5
312
319
 * with the following individual added to the list of Contributing Authors:
418
425
 * Y2K compliance in libpng:
419
426
 * =========================
420
427
 *
421
 
 *    February 18, 2012
 
428
 *    March 29, 2012
422
429
 *
423
430
 *    Since the PNG Development group is an ad-hoc body, we can't make
424
431
 *    an official declaration.
425
432
 *
426
433
 *    This is your unofficial assurance that libpng from version 0.71 and
427
 
 *    upward through 1.2.47 are Y2K compliant.  It is my belief that earlier
 
434
 *    upward through 1.2.49 are Y2K compliant.  It is my belief that earlier
428
435
 *    versions were also Y2K compliant.
429
436
 *
430
437
 *    Libpng only has three year fields.  One is a 2-byte unsigned integer
480
487
 */
481
488
 
482
489
/* Version information for png.h - this should match the version in png.c */
483
 
#define PNG_LIBPNG_VER_STRING "1.2.47"
 
490
#define PNG_LIBPNG_VER_STRING "1.2.49"
484
491
#define PNG_HEADER_VERSION_STRING \
485
 
   " libpng version 1.2.47 - February 18, 2012\n"
 
492
   " libpng version 1.2.49 - March 29, 2012\n"
486
493
 
487
494
#define PNG_LIBPNG_VER_SONUM   0
488
495
#define PNG_LIBPNG_VER_DLLNUM  13
490
497
/* These should match the first 3 components of PNG_LIBPNG_VER_STRING: */
491
498
#define PNG_LIBPNG_VER_MAJOR   1
492
499
#define PNG_LIBPNG_VER_MINOR   2
493
 
#define PNG_LIBPNG_VER_RELEASE 47
 
500
#define PNG_LIBPNG_VER_RELEASE 49
494
501
/* This should match the numeric part of the final component of
495
502
 * PNG_LIBPNG_VER_STRING, omitting any leading zero:
496
503
 */
520
527
 * version 1.0.0 was mis-numbered 100 instead of 10000).  From
521
528
 * version 1.0.1 it's    xxyyzz, where x=major, y=minor, z=release
522
529
 */
523
 
#define PNG_LIBPNG_VER 10247 /* 1.2.47 */
 
530
#define PNG_LIBPNG_VER 10249 /* 1.2.49 */
524
531
 
525
532
#ifndef PNG_VERSION_INFO_ONLY
526
533
/* Include the compression library's header */
1560
1567
/* This triggers a compiler error in png.c, if png.c and png.h
1561
1568
 * do not agree upon the version number.
1562
1569
 */
1563
 
typedef png_structp version_1_2_47;
 
1570
typedef png_structp version_1_2_49;
1564
1571
 
1565
1572
typedef png_struct FAR * FAR * png_structpp;
1566
1573