提交 b5f3c212 编写于 作者: G g00454901 提交者: public tcshversion

TicketNo:DTS2020081302683

Description:fix CVE-2018-14048.It is a SEGV in the function png_free_data in png.c, related to the recommended error handling for png_read_image.
https://nvd.nist.gov/vuln/detail/CVE-2018-140480
https://github.com/glennrp/libpng/pull/290/commits/6b16211b552a21e1c640bdeaf072ed6df43c3f55

Team:OTHERS
Feature or Bugfix:Bugfix
Binary Source:No
PrivateCode(Yes/No):No

Change-Id: I762f59767b070f5c6a98b3604cdc6cb69081575b
Reviewed-on: http://mgit-tm.rnd.huawei.com/10448035Tested-by: Npublic jenkins <public_jenkins@notesmail.huawei.com>
Reviewed-by: Nliqiang 00425722 <liqiang121@huawei.com>
Reviewed-by: Nzhaopeng 00380337 <zhaopeng22@huawei.com>
上级 8edc2d3f
......@@ -506,7 +506,7 @@ static void
display_clean_read(struct display *dp)
{
if (dp->read_pp != NULL)
png_destroy_read_struct(&dp->read_pp, NULL, NULL);
png_destroy_read_struct(&dp->read_pp, (dp->ip!=NULL ? &dp->ip : NULL), NULL);
if (dp->fp != NULL)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册