Skip to content

Commit

Permalink
set PNG maximum chunk size to default
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Oct 21, 2023
1 parent 4a0699f commit 09b7ea4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions coders/png.c
Original file line number Diff line number Diff line change
Expand Up @@ -2438,8 +2438,6 @@ static Image *ReadOnePNGImage(MngInfo *mng_info,
if (option != (const char *) NULL)
png_set_chunk_malloc_max(ping,(png_alloc_size_t) MagickMin(
MAGICK_SSIZE_MAX,StringToLong(option)));
else
png_set_chunk_malloc_max(ping,(png_alloc_size_t) GetMaxMemoryRequest());
#endif
}
#endif /* PNG_SET_USER_LIMITS_SUPPORTED */
Expand Down

0 comments on commit 09b7ea4

Please sign in to comment.