[libpng16] Do not enable tRNS having trans_color with out-of-range value.

This commit is contained in:
Glenn Randers-Pehrson
2017-10-16 07:25:58 -05:00
parent 2be0f33e7c
commit 48a2460393
3 changed files with 6 additions and 6 deletions

View File

@@ -1038,7 +1038,7 @@ png_set_tRNS(png_structrp png_ptr, png_inforp info_ptr,
{
png_warning(png_ptr,
"tRNS chunk has out-of-range samples for bit_depth");
trans_color = NULL;
return;
}
}