mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng17] Restored a "return" statement accidentally deleted from pngset.c
This commit is contained in:
parent
5e8ba1cbbf
commit
2969375aa6
1
pngset.c
1
pngset.c
@ -1385,6 +1385,7 @@ png_set_keep_unknown_chunks(png_structrp png_ptr, int keep,
|
|||||||
if (num_chunks + old_num_chunks > UINT_MAX/5)
|
if (num_chunks + old_num_chunks > UINT_MAX/5)
|
||||||
{
|
{
|
||||||
png_app_error(png_ptr, "png_set_keep_unknown_chunks: too many chunks");
|
png_app_error(png_ptr, "png_set_keep_unknown_chunks: too many chunks");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If these chunks are being reset to the default then no more memory is
|
/* If these chunks are being reset to the default then no more memory is
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user