Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Libpng
提交
a515d306
T
Third Party Libpng
项目概览
OpenHarmony
/
Third Party Libpng
大约 1 年 前同步成功
通知
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,发现更多精彩内容 >>
提交
a515d306
编写于
1月 01, 2010
作者:
G
Glenn Randers-Pehrson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[devel] Use png_calloc() instead of png_malloc(); png_memset() in pngrutil.c
上级
45af8193
变更
3
展开全部
隐藏空白更改
内联
并排
Showing
3 changed file
with
99 addition
and
1784 deletion
+99
-1784
ANNOUNCE
ANNOUNCE
+4
-3
CHANGES
CHANGES
+88
-1777
pngrutil.c
pngrutil.c
+7
-4
未找到文件。
ANNOUNCE
浏览文件 @
a515d306
Libpng 1.4.0rc07 -
December 30, 2009
Libpng 1.4.0rc07 -
January 1, 2010
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.
...
@@ -759,10 +759,11 @@ version 1.4.0rc06 [December 29, 2009]
...
@@ -759,10 +759,11 @@ version 1.4.0rc06 [December 29, 2009]
Reverted the gamma_table changes from libpng-1.4.0beta109.
Reverted the gamma_table changes from libpng-1.4.0beta109.
Fixed some indentation errors.
Fixed some indentation errors.
version 1.4.0rc07 [
December 30, 2009
]
version 1.4.0rc07 [
January 1, 2010
]
Revised libpng*.txt and libpng.3 about 1.2.x->1.4.x differences.
Revised libpng*.txt and libpng.3 about 1.2.x->1.4.x differences.
Use png_calloc() instead of png_malloc(); png_memset() in pngrutil.c
version 1.4.0 [
December 30, 2009
]
version 1.4.0 [
January 1, 2010
]
No changes.
No changes.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
...
...
CHANGES
浏览文件 @
a515d306
此差异已折叠。
点击以展开。
pngrutil.c
浏览文件 @
a515d306
/* pngrutil.c - utilities to read a PNG file
/* pngrutil.c - utilities to read a PNG file
*
*
* Last changed in libpng 1.4.0 [
December 29, 2009
]
* Last changed in libpng 1.4.0 [
January 1, 2010
]
* Copyright (c) 1998-20
09
Glenn Randers-Pehrson
* Copyright (c) 1998-20
10
Glenn Randers-Pehrson
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
*
*
...
@@ -3285,9 +3285,12 @@ defined(PNG_USER_TRANSFORM_PTR_SUPPORTED)
...
@@ -3285,9 +3285,12 @@ defined(PNG_USER_TRANSFORM_PTR_SUPPORTED)
if
(
row_bytes
+
48
>
png_ptr
->
old_big_row_buf_size
)
if
(
row_bytes
+
48
>
png_ptr
->
old_big_row_buf_size
)
{
{
png_free
(
png_ptr
,
png_ptr
->
big_row_buf
);
png_free
(
png_ptr
,
png_ptr
->
big_row_buf
);
png_ptr
->
big_row_buf
=
(
png_bytep
)
png_malloc
(
png_ptr
,
row_bytes
+
48
);
if
(
png_ptr
->
interlaced
)
if
(
png_ptr
->
interlaced
)
png_memset
(
png_ptr
->
big_row_buf
,
0
,
row_bytes
+
48
);
png_ptr
->
big_row_buf
=
(
png_bytep
)
png_calloc
(
png_ptr
,
row_bytes
+
48
);
else
png_ptr
->
big_row_buf
=
(
png_bytep
)
png_malloc
(
png_ptr
,
row_bytes
+
48
);
png_ptr
->
old_big_row_buf_size
=
row_bytes
+
48
;
png_ptr
->
old_big_row_buf_size
=
row_bytes
+
48
;
#ifdef PNG_ALIGNED_MEMORY_SUPPORTED
#ifdef PNG_ALIGNED_MEMORY_SUPPORTED
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录