diff --git a/libpng-1.4.0beta79.txt b/libpng-1.4.0beta79.txt index a5f053e15..09943cb56 100644 --- a/libpng-1.4.0beta79.txt +++ b/libpng-1.4.0beta79.txt @@ -2961,7 +2961,7 @@ png.h and pngconf.h into a new pngpriv.h header file. Support for the iTXt chunk has been enabled by default. -Support for global arrays was disabled by default. +Support for global arrays was removed. Some obsolete/deprecated macros and functions have been removed. @@ -3047,7 +3047,10 @@ allocates. The png_zalloc() and png_zfree() functions are no longer exported. -The png_calloc() function was added. +The png_calloc() function was added and is used in place of +of "png_malloc(); png_memset();" except in the case in png_read_png() +where the array consists of pointers; in this case a "for" loop is used +after the png_malloc() to set the pointers to NULL. We removed the trailing '.' from the warning and error messages. diff --git a/libpng.3 b/libpng.3 index 3e47dafc0..05c346cca 100644 --- a/libpng.3 +++ b/libpng.3 @@ -3770,7 +3770,7 @@ png.h and pngconf.h into a new pngpriv.h header file. Support for the iTXt chunk has been enabled by default. -Support for global arrays was disabled by default. +Support for global arrays was removed. Some obsolete/deprecated macros and functions have been removed. @@ -3856,7 +3856,10 @@ allocates. The png_zalloc() and png_zfree() functions are no longer exported. -The png_calloc() function was added. +The png_calloc() function was added and is used in place of +of "png_malloc(); png_memset();" except in the case in png_read_png() +where the array consists of pointers; in this case a "for" loop is used +after the png_malloc() to set the pointers to NULL. We removed the trailing '.' from the warning and error messages. diff --git a/pngconf.h b/pngconf.h index 7f52e598c..fae6ffef7 100644 --- a/pngconf.h +++ b/pngconf.h @@ -1195,6 +1195,8 @@ typedef char FAR * FAR * FAR * png_charppp; # define PNG_IMPEXP #endif +#define PNG_USE_LOCAL_ARRAYS /* Not used in libpng, defined for legacy apps */ + /* If you define PNGAPI, e.g., with compiler option "-DPNGAPI=__stdcall", * you may get warnings regarding the linkage of png_zalloc and png_zfree. * Don't ignore those warnings; you must also reset the default calling