提交 1ceedd0b 编写于 作者: J John Bowler 提交者: Glenn Randers-Pehrson

[libpng16] Another whack at png_handle_sPLT() pointer calculation.

上级 4db61276
......@@ -1670,7 +1670,7 @@ png_handle_sPLT(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
++entry_start;
/* A sample depth should follow the separator, and we should be on it */
if (length < 2 || entry_start - buffer > length - 2)
if (length < 2 || entry_start > buffer + (length - 2U))
{
png_warning(png_ptr, "malformed sPLT chunk");
return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册