mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng17] Make symbol prefixing work with the ARM neon optimizations. Also
allow pngpriv.h to be included for preprocessor definitions only, so it can be used in non-C/C++ files.
This commit is contained in:
committed by
Glenn Randers-Pehrson
parent
2969375aa6
commit
9124f3e29a
2
pngmem.c
2
pngmem.c
@@ -154,10 +154,12 @@ png_realloc_array,(png_structrp png_ptr, png_const_voidp old_array,
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef PNG_READ_SUPPORTED
|
||||
/* The potential overflow case. Set the cache counter so libpng will
|
||||
* not make any more attempts
|
||||
*/
|
||||
png_ptr->user_chunk_cache_max = 2;
|
||||
#endif
|
||||
|
||||
return NULL; /* error */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user