Skip to content

Commit

Permalink
possible DoS @ stdin (OCE-2022-70); possible arbitrary file leak (OCE…
Browse files Browse the repository at this point in the history
…-2022-72)
  • Loading branch information
Cristy committed Oct 22, 2022
1 parent 09e738e commit 05673e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions coders/png.c
Expand Up @@ -3980,6 +3980,7 @@ static Image *ReadOnePNGImage(MngInfo *mng_info,
(void) FormatLocaleString(key,MagickPathExtent,"%s",
text[i].key);
if ((LocaleCompare(key,"version") == 0) ||
(LocaleCompare(key,"profile") == 0) ||
(LocaleCompare(key,"width") == 0))
(void) FormatLocaleString(key,MagickPathExtent,"png:%s",
text[i].key);
Expand Down

0 comments on commit 05673e6

Please sign in to comment.