16 Star 64 Fork 90

OpenHarmony / third_party_libpng

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
CVE-2018-14048.patch 573 Bytes
一键复制 编辑 原始数据 按行查看 历史
刘波 提交于 2024-01-03 10:03 . Description: 更改patch路径
diff --git a/contrib/pngminus/png2pnm.c b/contrib/pngminus/png2pnm.c
index 5fef7ed14..5c8ff30f6 100644
--- a/contrib/pngminus/png2pnm.c
+++ b/contrib/pngminus/png2pnm.c
@@ -208,6 +208,16 @@ BOOL png2pnm (FILE *png_file, FILE *pnm_file, FILE *alpha_file,
if (setjmp (png_jmpbuf (png_ptr)))
{
png_destroy_read_struct (&png_ptr, &info_ptr, NULL);
+ if(row_pointers != NULL)
+ {
+ free(row_pointers);
+ row_pointers = NULL;
+ }
+ if(png_pixels != NULL)
+ {
+ free(png_pixels);
+ png_pixels = NULL;
+ }
return FALSE;
}
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

搜索帮助