Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Libpng
提交
5f4b95e5
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,发现更多精彩内容 >>
提交
5f4b95e5
编写于
11月 22, 2012
作者:
G
Glenn Randers-Pehrson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[libpng16] Made png_user_version_check() ok to use with libpng version 1.10.x
and later.
上级
70850fce
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
17 addition
and
13 deletion
+17
-13
ANNOUNCE
ANNOUNCE
+3
-2
CHANGES
CHANGES
+2
-1
png.c
png.c
+12
-10
未找到文件。
ANNOUNCE
浏览文件 @
5f4b95e5
Libpng 1.6.0beta32 - November
15
, 2012
Libpng 1.6.0beta32 - November
22
, 2012
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.
...
...
@@ -545,11 +545,12 @@ Version 1.6.0beta31 [November 1, 2012]
gain; implementing full ICC color correction may be desireable but is left
up to applications.
Version 1.6.0beta32 [November
15
, 2012]
Version 1.6.0beta32 [November
22
, 2012]
Fixed an intermittent SEGV in pngstest due to an uninitialized array element.
Added the ability for contrib/libtests/makepng.c to make a PNG with just one
color. This is useful for debugging pngstest color inaccuracy reports.
Fixed error checking in the simplified write API (Olaf van der Spek)
Made png_user_version_check() ok to use with libpng version 1.10.x and later.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit
...
...
CHANGES
浏览文件 @
5f4b95e5
...
...
@@ -4297,11 +4297,12 @@ Version 1.6.0beta31 [November 1, 2012]
gain; implementing full ICC color correction may be desireable but is left
up to applications.
Version 1.6.0beta32 [November
15
, 2012]
Version 1.6.0beta32 [November
22
, 2012]
Fixed an intermittent SEGV in pngstest due to an uninitialized array element.
Added the ability for contrib/libtests/makepng.c to make a PNG with just one
color. This is useful for debugging pngstest color inaccuracy reports.
Fixed error checking in the simplified write API (Olaf van der Spek)
Made png_user_version_check() ok to use with libpng version 1.10.x and later.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit
...
...
png.c
浏览文件 @
5f4b95e5
...
...
@@ -128,10 +128,10 @@ png_calculate_crc(png_structrp png_ptr, png_const_bytep ptr, png_size_t length)
need_crc
=
0
;
}
/* 'uLong' is defined
as unsigned long, this means that on some systems it is
*
a 64 bit value. crc32, however, returns 32 bits so the following cast is
*
safe. 'uInt' may be no more than 16 bits, so it is necessary to perform a
* loop here.
/* 'uLong' is defined
in zlib.h as unsigned long; this means that on some
*
systems it is a 64 bit value. crc32, however, returns 32 bits so the
*
following cast is safe. 'uInt' may be no more than 16 bits, so it is
*
necessary to perform a
loop here.
*/
if
(
need_crc
&&
length
>
0
)
{
...
...
@@ -145,7 +145,7 @@ png_calculate_crc(png_structrp png_ptr, png_const_bytep ptr, png_size_t length)
crc
=
crc32
(
crc
,
ptr
,
safe_length
);
/* The following should never issue compiler warnings
,
if they do the
/* The following should never issue compiler warnings
;
if they do the
* target system has characteristics that will probably violate other
* assumptions within the libpng code.
*/
...
...
@@ -160,7 +160,7 @@ png_calculate_crc(png_structrp png_ptr, png_const_bytep ptr, png_size_t length)
}
/* Check a user supplied version number, called from both read and write
* functions that create a png_struct
* functions that create a png_struct
.
*/
int
png_user_version_check
(
png_structrp
png_ptr
,
png_const_charp
user_png_ver
)
...
...
@@ -184,10 +184,12 @@ png_user_version_check(png_structrp png_ptr, png_const_charp user_png_ver)
/* Libpng 0.90 and later are binary incompatible with libpng 0.89, so
* we must recompile any applications that use any older library version.
* For versions after libpng 1.0, we will be compatible, so we need
* only check the first digit.
* only check the first and third digits (note that when we reach version
* 1.10 we will need to check the fourth symbol, namely user_png_ver[3]).
*/
if
(
user_png_ver
==
NULL
||
user_png_ver
[
0
]
!=
png_libpng_ver
[
0
]
||
(
user_png_ver
[
0
]
==
'1'
&&
user_png_ver
[
2
]
!=
png_libpng_ver
[
2
])
||
(
user_png_ver
[
0
]
==
'1'
&&
(
user_png_ver
[
2
]
!=
png_libpng_ver
[
2
]
||
user_png_ver
[
3
]
!=
png_libpng_ver
[
3
]))
||
(
user_png_ver
[
0
]
==
'0'
&&
user_png_ver
[
2
]
<
'9'
))
{
#ifdef PNG_WARNINGS_SUPPORTED
...
...
@@ -766,13 +768,13 @@ png_get_copyright(png_const_structrp png_ptr)
#else
# ifdef __STDC__
return
PNG_STRING_NEWLINE
\
"libpng version 1.6.0beta32 - November
1
, 2012"
PNG_STRING_NEWLINE
\
"libpng version 1.6.0beta32 - November
22
, 2012"
PNG_STRING_NEWLINE
\
"Copyright (c) 1998-2012 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.0beta32 - November
1
, 2012\
return
"libpng version 1.6.0beta32 - November
22
, 2012\
Copyright (c) 1998-2012 Glenn Randers-Pehrson\
Copyright (c) 1996-1997 Andreas Dilger\
Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc."
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录