mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[devel] Fixed some incorrect indentation in pngrutil.c
This commit is contained in:
parent
fa0281061b
commit
a98aa48e57
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngrutil.c - utilities to read a PNG file
|
/* pngrutil.c - utilities to read a PNG file
|
||||||
*
|
*
|
||||||
* Last changed in libpng 1.4.0 [October 10, 2009]
|
* Last changed in libpng 1.4.0 [October 13, 2009]
|
||||||
* Copyright (c) 1998-2009 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2009 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
|
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
|
||||||
@ -3285,12 +3285,12 @@ defined(PNG_USER_TRANSFORM_PTR_SUPPORTED)
|
|||||||
if ((png_uint_32)png_ptr->rowbytes > (png_uint_32)(PNG_SIZE_MAX - 1))
|
if ((png_uint_32)png_ptr->rowbytes > (png_uint_32)(PNG_SIZE_MAX - 1))
|
||||||
png_error(png_ptr, "Row has too many bytes to allocate in memory");
|
png_error(png_ptr, "Row has too many bytes to allocate in memory");
|
||||||
|
|
||||||
if (png_ptr->rowbytes+1 > png_ptr->old_prev_row_size)
|
if (png_ptr->rowbytes + 1 > png_ptr->old_prev_row_size)
|
||||||
{
|
{
|
||||||
png_free(png_ptr, png_ptr->prev_row);
|
png_free(png_ptr, png_ptr->prev_row);
|
||||||
png_ptr->prev_row = (png_bytep)png_malloc(png_ptr, (png_uint_32)(
|
png_ptr->prev_row = (png_bytep)png_malloc(png_ptr, (png_uint_32)(
|
||||||
png_ptr->rowbytes + 1));
|
png_ptr->rowbytes + 1));
|
||||||
png_ptr->old_prev_row_size = png_ptr->rowbytes+1;
|
png_ptr->old_prev_row_size = png_ptr->rowbytes + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
png_memset(png_ptr->prev_row, 0, png_ptr->rowbytes + 1);
|
png_memset(png_ptr->prev_row, 0, png_ptr->rowbytes + 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user