Lines 1-7
Link Here
|
1 |
|
1 |
|
2 |
/* pngwutil.c - utilities to write a PNG file |
2 |
/* pngwutil.c - utilities to write a PNG file |
3 |
* |
3 |
* |
4 |
* Last changed in libpng 1.2.13 November 13, 2006 |
4 |
* Last changed in libpng 1.2.15 December 31, 2006 |
5 |
* For conditions of distribution and use, see copyright notice in png.h |
5 |
* For conditions of distribution and use, see copyright notice in png.h |
6 |
* Copyright (c) 1998-2006 Glenn Randers-Pehrson |
6 |
* Copyright (c) 1998-2006 Glenn Randers-Pehrson |
7 |
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) |
7 |
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) |
Lines 757-764
Link Here
|
757 |
profile_len = 0; |
757 |
profile_len = 0; |
758 |
|
758 |
|
759 |
if (profile_len > 3) |
759 |
if (profile_len > 3) |
760 |
embedded_profile_len = ((*(profile ))<<24) | ((*(profile+1))<<16) | |
760 |
embedded_profile_len = |
761 |
((*(profile+2))<< 8) | ((*(profile+3)) ); |
761 |
((*( (png_bytep)profile ))<<24) | |
|
|
762 |
((*( (png_bytep)profile+1))<<16) | |
763 |
((*( (png_bytep)profile+2))<< 8) | |
764 |
((*( (png_bytep)profile+3)) ); |
762 |
|
765 |
|
763 |
if (profile_len < embedded_profile_len) |
766 |
if (profile_len < embedded_profile_len) |
764 |
{ |
767 |
{ |