Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Libpng
提交
5a1d1b53
T
Third Party Libpng
项目概览
OpenHarmony
/
Third Party Libpng
12 个月 前同步成功
通知
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,发现更多精彩内容 >>
提交
5a1d1b53
编写于
4月 24, 2014
作者:
G
Glenn Randers-Pehrson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[libpng16] Do not reject ICC V2 profiles that lack padding (Kai-Uwe Behrmann).
上级
d5201df5
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
14 addition
and
11 deletion
+14
-11
ANNOUNCE
ANNOUNCE
+3
-2
CHANGES
CHANGES
+2
-1
png.c
png.c
+9
-8
未找到文件。
ANNOUNCE
浏览文件 @
5a1d1b53
Libpng 1.6.11beta05 - April 2
1
, 2014
Libpng 1.6.11beta05 - April 2
4
, 2014
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.
...
...
@@ -55,7 +55,8 @@ Version 1.6.11beta04 [April 19, 2014]
when png_combine_row is not used or not built,
Allow PNG_sRGB_PROFILE_CHECKING = (-1) to mean no sRGB profile checking.
Version 1.6.11beta05 [April 21, 2014]
Version 1.6.11beta05 [April 24, 2014]
Do not reject ICC V2 profiles that lack padding.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit
...
...
CHANGES
浏览文件 @
5a1d1b53
...
...
@@ -4906,7 +4906,8 @@ Version 1.6.11beta04 [April 19, 2014]
when png_combine_row is not used or not built,
Allow PNG_sRGB_PROFILE_CHECKING = (-1) to mean no sRGB profile checking.
Version 1.6.11beta05 [April 21, 2014]
Version 1.6.11beta05 [April 24, 2014]
Do not reject ICC V2 profiles that lack padding.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit
...
...
png.c
浏览文件 @
5a1d1b53
...
...
@@ -773,13 +773,13 @@ png_get_copyright(png_const_structrp png_ptr)
#else
# ifdef __STDC__
return
PNG_STRING_NEWLINE
\
"libpng version 1.6.11beta05 - April 2
1
, 2014"
PNG_STRING_NEWLINE
\
"libpng version 1.6.11beta05 - April 2
4
, 2014"
PNG_STRING_NEWLINE
\
"Copyright (c) 1998-2014 Glenn Randers-Pehrson"
PNG_STRING_NEWLINE
\
"Copyright (c) 1996-1997 Andreas Dilger"
PNG_STRING_NEWLINE
\
"Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc."
\
PNG_STRING_NEWLINE
;
# else
return
"libpng version 1.6.11beta05 - April 2
1
, 2014\
return
"libpng version 1.6.11beta05 - April 2
4
, 2014\
Copyright (c) 1998-2014 Glenn Randers-Pehrson\
Copyright (c) 1996-1997 Andreas Dilger\
Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc."
;
...
...
@@ -1906,10 +1906,6 @@ png_icc_check_length(png_const_structrp png_ptr, png_colorspacerp colorspace,
return
png_icc_profile_error
(
png_ptr
,
colorspace
,
name
,
profile_length
,
"too short"
);
if
(
profile_length
&
3
)
return
png_icc_profile_error
(
png_ptr
,
colorspace
,
name
,
profile_length
,
"invalid length"
);
return
1
;
}
...
...
@@ -1930,6 +1926,11 @@ png_icc_check_header(png_const_structrp png_ptr, png_colorspacerp colorspace,
return
png_icc_profile_error
(
png_ptr
,
colorspace
,
name
,
temp
,
"length does not match profile"
);
temp
=
(
png_uint_32
)
(
*
(
profile
+
8
));
if
(
temp
>
3
&&
(
profile_length
&
3
))
return
png_icc_profile_error
(
png_ptr
,
colorspace
,
name
,
profile_length
,
"invalid length"
);
temp
=
png_get_uint_32
(
profile
+
128
);
/* tag count: 12 bytes/tag */
if
(
temp
>
357913930
||
/* (2^32-4-132)/12: maximum possible tag count */
profile_length
<
132
+
12
*
temp
)
/* truncated tag table */
...
...
@@ -2044,7 +2045,7 @@ png_icc_check_header(png_const_structrp png_ptr, png_colorspacerp colorspace,
"invalid embedded Abstract ICC profile"
);
case
0x6C696E6B
:
/* 'link' */
/* DeviceLink profiles cann
n
ot be interpreted in a non-device specific
/* DeviceLink profiles cannot be interpreted in a non-device specific
* fashion, if an app uses the AToB0Tag in the profile the results are
* undefined unless the result is sent to the intended device,
* therefore a DeviceLink profile should not be found embedded in a
...
...
@@ -2055,7 +2056,7 @@ png_icc_check_header(png_const_structrp png_ptr, png_colorspacerp colorspace,
case
0x6E6D636C
:
/* 'nmcl' */
/* A NamedColor profile is also device specific, however it doesn't
* contain an AToB0 tag that is open to misint
re
pretation. Almost
* contain an AToB0 tag that is open to misint
er
pretation. Almost
* certainly it will fail the tests below.
*/
(
void
)
png_icc_profile_error
(
png_ptr
,
NULL
,
name
,
temp
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录