[devel] Corrected protection of png_get_user_transform_ptr.
The API declaration in png.h is removed if both READ and WRITE USER_TRANSFORM are turned off but was left defined in pngtrans.c
This commit is contained in:
parent
1ce8133282
commit
cf2fd3b6ca
7
ANNOUNCE
7
ANNOUNCE
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
Libpng 1.5.0beta23 - April 28, 2010
|
Libpng 1.5.0beta23 - April 29, 2010
|
||||||
|
|
||||||
This is not intended to be a public release. It will be replaced
|
This is not intended to be a public release. It will be replaced
|
||||||
within a few weeks by a public version or by another test version.
|
within a few weeks by a public version or by another test version.
|
||||||
@ -202,13 +202,16 @@ version 1.5.0beta22 [April 28, 2010]
|
|||||||
Improved the options.awk script; added an "everything off" option.
|
Improved the options.awk script; added an "everything off" option.
|
||||||
Revised contrib/pngminim to use the "everything off" option in pngusr.dfa.
|
Revised contrib/pngminim to use the "everything off" option in pngusr.dfa.
|
||||||
|
|
||||||
version 1.5.0beta23 [April 28, 2010]
|
version 1.5.0beta23 [April 29, 2010]
|
||||||
Corrected PNG_REMOVED macro to take five arguments.
|
Corrected PNG_REMOVED macro to take five arguments.
|
||||||
The macro was documented with two arguments (name,ordinal), however
|
The macro was documented with two arguments (name,ordinal), however
|
||||||
the symbol checking .dfn files assumed five arguments. The five
|
the symbol checking .dfn files assumed five arguments. The five
|
||||||
argument form seems more useful so it is changed to that.
|
argument form seems more useful so it is changed to that.
|
||||||
Corrected PNG_UNKNOWN_CHUNKS_SUPPORTED to PNG_HANDLE_AS_UNKNOWN_SUPPORTED
|
Corrected PNG_UNKNOWN_CHUNKS_SUPPORTED to PNG_HANDLE_AS_UNKNOWN_SUPPORTED
|
||||||
in gregbook/readpng2.c
|
in gregbook/readpng2.c
|
||||||
|
Corrected protection of png_get_user_transform_ptr. The API declaration in
|
||||||
|
png.h is removed if both READ and WRITE USER_TRANSFORM are turned off
|
||||||
|
but was left defined in pngtrans.c
|
||||||
|
|
||||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net:
|
Send comments/corrections/commendations to png-mng-implement at lists.sf.net:
|
||||||
(subscription required; visit
|
(subscription required; visit
|
||||||
|
5
CHANGES
5
CHANGES
@ -2684,13 +2684,16 @@ version 1.5.0beta22 [April 28, 2010]
|
|||||||
Improved the options.awk script; added an "everything off" option.
|
Improved the options.awk script; added an "everything off" option.
|
||||||
Revised contrib/pngminim to use the "everything off" option in pngusr.dfa.
|
Revised contrib/pngminim to use the "everything off" option in pngusr.dfa.
|
||||||
|
|
||||||
version 1.5.0beta23 [April 28, 2010]
|
version 1.5.0beta23 [April 29, 2010]
|
||||||
Corrected PNG_REMOVED macro to take five arguments.
|
Corrected PNG_REMOVED macro to take five arguments.
|
||||||
The macro was documented with two arguments (name,ordinal), however
|
The macro was documented with two arguments (name,ordinal), however
|
||||||
the symbol checking .dfn files assumed five arguments. The five
|
the symbol checking .dfn files assumed five arguments. The five
|
||||||
argument form seems more useful so it is changed to that.
|
argument form seems more useful so it is changed to that.
|
||||||
Corrected PNG_UNKNOWN_CHUNKS_SUPPORTED to PNG_HANDLE_AS_UNKNOWN_SUPPORTED
|
Corrected PNG_UNKNOWN_CHUNKS_SUPPORTED to PNG_HANDLE_AS_UNKNOWN_SUPPORTED
|
||||||
in gregbook/readpng2.c
|
in gregbook/readpng2.c
|
||||||
|
Corrected protection of png_get_user_transform_ptr. The API declaration in
|
||||||
|
png.h is removed if both READ and WRITE USER_TRANSFORM are turned off
|
||||||
|
but was left defined in pngtrans.c
|
||||||
|
|
||||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
||||||
(subscription required; visit
|
(subscription required; visit
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngtrans.c - transforms the data in a row (used by both readers and writers)
|
/* pngtrans.c - transforms the data in a row (used by both readers and writers)
|
||||||
*
|
*
|
||||||
* Last changed in libpng 1.5.0 [April 28, 2010]
|
* Last changed in libpng 1.5.0 [April 29, 2010]
|
||||||
* Copyright (c) 1998-2010 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2010 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.)
|
||||||
@ -654,7 +654,6 @@ png_set_user_transform_info(png_structp png_ptr, png_voidp
|
|||||||
"This version of libpng does not support user transform info");
|
"This version of libpng does not support user transform info");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/* This function returns a pointer to the user_transform_ptr associated with
|
/* This function returns a pointer to the user_transform_ptr associated with
|
||||||
* the user transform functions. The application should free any memory
|
* the user transform functions. The application should free any memory
|
||||||
@ -672,4 +671,6 @@ png_get_user_transform_ptr(png_structp png_ptr)
|
|||||||
return (NULL);
|
return (NULL);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#endif /* PNG_READ_USER_TRANSFORM_SUPPORTED ||
|
||||||
|
PNG_WRITE_USER_TRANSFORM_SUPPORTED */
|
||||||
#endif /* PNG_READ_SUPPORTED || PNG_WRITE_SUPPORTED */
|
#endif /* PNG_READ_SUPPORTED || PNG_WRITE_SUPPORTED */
|
||||||
|
Loading…
Reference in New Issue
Block a user