16 Star 64 Fork 90

OpenHarmony / third_party_libpng

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
CVE-2019-6129.patch 706 Bytes
一键复制 编辑 原始数据 按行查看 历史
From a0ca4293454ef65e67efca5dc440c601d2835e90 Mon Sep 17 00:00:00 2001
From: tangyaofang <tangyaofang6666@163.com>
Date: Mon, 10 Jun 2019 11:30:15 +0800
Subject: [PATCH] Repair of CVE-2019-6129
---
contrib/tools/pngcp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/tools/pngcp.c b/contrib/tools/pngcp.c
index 16d4e7f4d..a02d5b7ff 100644
--- a/contrib/tools/pngcp.c
+++ b/contrib/tools/pngcp.c
@@ -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)
{
1
https://gitee.com/openharmony/third_party_libpng.git
git@gitee.com:openharmony/third_party_libpng.git
openharmony
third_party_libpng
third_party_libpng
master

搜索帮助