~ubuntu-branches/ubuntu/oneiric/libpng/oneiric

« back to all changes in this revision

Viewing changes to pngrutil.c

  • Committer: Bazaar Package Importer
  • Author(s): Anibal Monsalve Salazar
  • Date: 2009-05-22 09:11:26 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20090522091126-ackh8fu2581nwuyg
Tags: 1.2.36-1
* New upstream release 
* Standards-Version is 3.8.1
* debhelper compat is 7
* Run dh_prep instead of dh_clean -k

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
2
/* pngrutil.c - utilities to read a PNG file
3
3
 *
4
 
 * Last changed in libpng 1.2.34 [December 18, 2008]
 
4
 * Last changed in libpng 1.2.36 [May 7, 2009]
5
5
 * For conditions of distribution and use, see copyright notice in png.h
6
 
 * Copyright (c) 1998-2008 Glenn Randers-Pehrson
 
6
 * Copyright (c) 1998-2009 Glenn Randers-Pehrson
7
7
 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
8
8
 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
9
9
 *
3187
3187
   if (row_bytes + 64 > png_ptr->old_big_row_buf_size)
3188
3188
   {
3189
3189
     png_free(png_ptr, png_ptr->big_row_buf);
3190
 
     png_ptr->big_row_buf = (png_bytep)png_malloc(png_ptr, row_bytes+64);
3191
 
     png_ptr->row_buf = png_ptr->big_row_buf+32;
3192
 
     png_ptr->old_big_row_buf_size = row_bytes+64;
 
3190
      png_ptr->big_row_buf = (png_bytep)png_malloc(png_ptr, row_bytes + 64);
 
3191
     if (png_ptr->interlaced)
 
3192
       png_memset(png_ptr->big_row_buf, 0, png_ptr->rowbytes + 64);
 
3193
     png_ptr->row_buf = png_ptr->big_row_buf + 32;
 
3194
     png_ptr->old_big_row_buf_size = row_bytes + 64;
3193
3195
   }
3194
3196
 
3195
3197
#ifdef PNG_MAX_MALLOC_64K