Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Libpng
提交
c127057f
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,发现更多精彩内容 >>
提交
c127057f
编写于
10月 12, 2010
作者:
G
Glenn Randers-Pehrson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[devel] Suppressed a compiler warning in png_handle_sPLT().
上级
9a75d994
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
14 addition
and
7 deletion
+14
-7
ANNOUNCE
ANNOUNCE
+4
-3
CHANGES
CHANGES
+2
-1
pngrutil.c
pngrutil.c
+8
-3
未找到文件。
ANNOUNCE
浏览文件 @
c127057f
Libpng 1.5.0beta50 - October
8
, 2010
Libpng 1.5.0beta50 - October
12
, 2010
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.
...
...
@@ -226,7 +226,7 @@ version 1.5.0beta24 [May 7, 2010]
offset of the png_ptr->rowbuf pointer into png_ptr->big_row_buf.
Added more blank lines for readability.
version 1.5.0beta25 [October
8
, 2010]
version 1.5.0beta25 [October
12
, 2010]
In pngpread.c: png_push_have_row() add check for new_row > height
Removed the now-redundant check for out-of-bounds new_row from example.c
...
...
@@ -408,9 +408,10 @@ Version 1.5.0beta48 [October 4, 2010]
Version 1.5.0beta49 [October 8, 2010]
Undid Makefile.am revision of 1.5.0beta48.
Version 1.5.0beta50 [October
8
, 2010]
Version 1.5.0beta50 [October
12
, 2010]
Revised Makefile.in to account for mkinstalldirs being removed.
Added some "(unsigned long)" typecasts in printf statements in pngvalid.c.
Suppressed a compiler warning in png_handle_sPLT().
Send comments/corrections/commendations to png-mng-implement at lists.sf.net:
(subscription required; visit
...
...
CHANGES
浏览文件 @
c127057f
...
...
@@ -3046,9 +3046,10 @@ Version 1.5.0beta48 [October 4, 2010]
Version 1.5.0beta49 [October 8, 2010]
Undid Makefile.am revision of 1.5.0beta48.
Version 1.5.0beta50 [October
8
, 2010]
Version 1.5.0beta50 [October
12
, 2010]
Revised Makefile.in to account for mkinstalldirs being removed.
Added some "(unsigned long)" typecasts in printf statements in pngvalid.c.
Suppressed a compiler warning in png_handle_sPLT().
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit
...
...
pngrutil.c
浏览文件 @
c127057f
/* pngrutil.c - utilities to read a PNG file
*
* Last changed in libpng 1.4.1 [October
8
, 2010]
* Last changed in libpng 1.4.1 [October
12
, 2010]
* Copyright (c) 1998-2010 Glenn Randers-Pehrson
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
...
...
@@ -1211,6 +1211,8 @@ png_handle_sPLT(png_structp png_ptr, png_infop info_ptr, png_uint_32 length)
int
entry_size
,
i
;
png_uint_32
skip
=
0
;
png_size_t
slength
;
png_uint_32
dl
;
png_size_t
max_dl
;
png_debug
(
1
,
"in png_handle_sPLT"
);
...
...
@@ -1303,13 +1305,16 @@ png_handle_sPLT(png_structp png_ptr, png_infop info_ptr, png_uint_32 length)
return
;
}
if
((
data_length
/
entry_size
)
>
(
PNG_SIZE_MAX
/
png_sizeof
(
png_sPLT_entry
)))
dl
=
(
png_int_32
)
(
data_length
/
entry_size
);
max_dl
=
PNG_SIZE_MAX
/
png_sizeof
(
png_sPLT_entry
);
if
(
dl
>
max_dl
)
{
png_warning
(
png_ptr
,
"sPLT chunk too long"
);
return
;
}
new_palette
.
nentries
=
(
png_int_32
)
(
data_length
/
entry_size
);
new_palette
.
nentries
=
(
png_int_32
)
(
data_length
/
entry_size
);
new_palette
.
entries
=
(
png_sPLT_entryp
)
png_malloc_warn
(
png_ptr
,
new_palette
.
nentries
*
png_sizeof
(
png_sPLT_entry
));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录