Hack around #14628. The icon is distorted but at least no crash.

Seems like a clear bug in libpng.
This commit is contained in:
Henrik Rydgård 2021-07-19 17:09:26 +02:00
parent f18a5ed6c4
commit 6daa18cca0

View File

@ -3997,7 +3997,8 @@ png_image_read_direct(png_voidp argument)
# endif
/* This is actually an internal error. */
affirm(out_format == format /* else unimplemented transformations */);
// HACK to prevent crash: See issue #14628
// affirm(out_format == format /* else unimplemented transformations */);
}
/* Now read the rows. If do_local_compose is set then it is necessary to use