Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Libpng
提交
217d38cd
T
Third Party Libpng
项目概览
OpenHarmony
/
Third Party Libpng
11 个月 前同步成功
通知
4
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Libpng
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
217d38cd
编写于
3月 07, 2015
作者:
G
Glenn Randers-Pehrson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[libpng16] Stopped a potential memory leak in png_set_unknown_chunks(). Breaks
tests/pngunknown-sAPI so it's temporarily marked SKIP.
上级
377fb539
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
23 addition
and
6 deletion
+23
-6
ANNOUNCE
ANNOUNCE
+4
-2
CHANGES
CHANGES
+3
-1
png.c
png.c
+2
-2
pngset.c
pngset.c
+12
-1
tests/pngunknown-sAPI
tests/pngunknown-sAPI
+2
-0
未找到文件。
ANNOUNCE
浏览文件 @
217d38cd
Libpng 1.6.17rc02 - March
6
, 2015
Libpng 1.6.17rc02 - March
7
, 2015
This is not intended to be a public release. It will be replaced
This is not intended to be a public release. It will be replaced
within a few weeks by a public version or by another test version.
within a few weeks by a public version or by another test version.
...
@@ -68,9 +68,11 @@ Version 1.6.17beta06 [February 27, 2015]
...
@@ -68,9 +68,11 @@ Version 1.6.17beta06 [February 27, 2015]
Version 1.6.17rc01 [March 4, 2015]
Version 1.6.17rc01 [March 4, 2015]
No changes.
No changes.
Version 1.6.17rc02 [March
6
, 2015]
Version 1.6.17rc02 [March
7
, 2015]
Removed some comments that the configure script did not handle
Removed some comments that the configure script did not handle
properly from scripts/pnglibconf.dfa and pnglibconf.h.prebuilt.
properly from scripts/pnglibconf.dfa and pnglibconf.h.prebuilt.
Stopped a potential memory leak in png_set_unknown_chunks(). Breaks
tests/pngunknown-sAPI so it's temporarily marked SKIP.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit
(subscription required; visit
...
...
CHANGES
浏览文件 @
217d38cd
...
@@ -5169,9 +5169,11 @@ Version 1.6.17beta06 [February 27, 2015]
...
@@ -5169,9 +5169,11 @@ Version 1.6.17beta06 [February 27, 2015]
Version 1.6.17rc01 [March 4, 2015]
Version 1.6.17rc01 [March 4, 2015]
No changes.
No changes.
Version 1.6.17rc02 [March
6
, 2015]
Version 1.6.17rc02 [March
7
, 2015]
Removed some comments that the configure script did not handle
Removed some comments that the configure script did not handle
properly from scripts/pnglibconf.dfa and pnglibconf.h.prebuilt.
properly from scripts/pnglibconf.dfa and pnglibconf.h.prebuilt.
Stopped a potential memory leak in png_set_unknown_chunks(). Breaks
tests/pngunknown-sAPI so it's temporarily marked SKIP.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit
(subscription required; visit
...
...
png.c
浏览文件 @
217d38cd
...
@@ -772,13 +772,13 @@ png_get_copyright(png_const_structrp png_ptr)
...
@@ -772,13 +772,13 @@ png_get_copyright(png_const_structrp png_ptr)
#else
#else
# ifdef __STDC__
# ifdef __STDC__
return
PNG_STRING_NEWLINE
\
return
PNG_STRING_NEWLINE
\
"libpng version 1.6.17rc02 - March
6
, 2015"
PNG_STRING_NEWLINE
\
"libpng version 1.6.17rc02 - March
7
, 2015"
PNG_STRING_NEWLINE
\
"Copyright (c) 1998-2015 Glenn Randers-Pehrson"
PNG_STRING_NEWLINE
\
"Copyright (c) 1998-2015 Glenn Randers-Pehrson"
PNG_STRING_NEWLINE
\
"Copyright (c) 1996-1997 Andreas Dilger"
PNG_STRING_NEWLINE
\
"Copyright (c) 1996-1997 Andreas Dilger"
PNG_STRING_NEWLINE
\
"Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc."
\
"Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc."
\
PNG_STRING_NEWLINE
;
PNG_STRING_NEWLINE
;
# else
# else
return
"libpng version 1.6.17rc02 - March
6
, 2015\
return
"libpng version 1.6.17rc02 - March
7
, 2015\
Copyright (c) 1998-2015 Glenn Randers-Pehrson\
Copyright (c) 1998-2015 Glenn Randers-Pehrson\
Copyright (c) 1996-1997 Andreas Dilger\
Copyright (c) 1996-1997 Andreas Dilger\
Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc."
;
Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc."
;
...
...
pngset.c
浏览文件 @
217d38cd
...
@@ -1180,6 +1180,17 @@ png_set_unknown_chunks(png_const_structrp png_ptr,
...
@@ -1180,6 +1180,17 @@ png_set_unknown_chunks(png_const_structrp png_ptr,
return
;
return
;
}
}
if
((
np
->
location
&
(
PNG_HAVE_IHDR
|
PNG_HAVE_PLTE
|
PNG_AFTER_IDAT
))
==
0
)
{
png_free
(
png_ptr
,
np
);
np
=
NULL
;
png_chunk_report
(
png_ptr
,
"invalid chunk location in png_set_unknown_chunks"
,
PNG_CHUNK_WRITE_ERROR
);
return
;
}
png_free
(
png_ptr
,
info_ptr
->
unknown_chunks
);
png_free
(
png_ptr
,
info_ptr
->
unknown_chunks
);
info_ptr
->
unknown_chunks
=
np
;
/* safe because it is initialized */
info_ptr
->
unknown_chunks
=
np
;
/* safe because it is initialized */
info_ptr
->
free_me
|=
PNG_FREE_UNKN
;
info_ptr
->
free_me
|=
PNG_FREE_UNKN
;
...
@@ -1254,7 +1265,7 @@ png_set_unknown_chunk_location(png_const_structrp png_ptr, png_inforp info_ptr,
...
@@ -1254,7 +1265,7 @@ png_set_unknown_chunk_location(png_const_structrp png_ptr, png_inforp info_ptr,
check_location
(
png_ptr
,
location
);
check_location
(
png_ptr
,
location
);
}
}
}
}
#endif
#endif
/* STORE_UNKNOWN_CHUNKS */
#ifdef PNG_MNG_FEATURES_SUPPORTED
#ifdef PNG_MNG_FEATURES_SUPPORTED
...
...
tests/pngunknown-sAPI
浏览文件 @
217d38cd
#!/bin/sh
#!/bin/sh
code
=
77
# skipped
exit
77
exec
./pngunknown
bKGD
=
save
cHRM
=
save
gAMA
=
save
all
=
discard
iCCP
=
save
sBIT
=
save
sRGB
=
save
"
${
srcdir
}
/pngtest.png"
exec
./pngunknown
bKGD
=
save
cHRM
=
save
gAMA
=
save
all
=
discard
iCCP
=
save
sBIT
=
save
sRGB
=
save
"
${
srcdir
}
/pngtest.png"
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录