Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Libpng
提交
3dfd0cd6
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,发现更多精彩内容 >>
提交
3dfd0cd6
编写于
9月 30, 2009
作者:
G
Glenn Randers-Pehrson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[master] Add a test to make sure the user isn't trying to stuff height into
a 16-bit int (assuming height immediately follows width).
上级
18bd86f1
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
22 addition
and
8 deletion
+22
-8
pngconf.h
pngconf.h
+8
-7
pngget.c
pngget.c
+14
-1
未找到文件。
pngconf.h
浏览文件 @
3dfd0cd6
/* pngconf.h - machine configurable file for libpng
*
* libpng version 1.2.41beta0
1 - September 25
, 2009
* libpng version 1.2.41beta0
2 - September 30
, 2009
* Copyright (c) 1998-2009 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.)
...
...
@@ -787,6 +787,7 @@
#endif
/* end of obsolete code to be removed from libpng-1.4.0 */
/* Added at libpng-1.2.0 */
#if !defined(PNG_1_0_X)
#if !defined(PNG_NO_USER_MEM) && !defined(PNG_USER_MEM_SUPPORTED)
# define PNG_USER_MEM_SUPPORTED
...
...
@@ -794,12 +795,12 @@
#endif
/* PNG_1_0_X */
/* Added at libpng-1.2.6 */
#if
!defined(PNG_1_0_X)
#ifndef PNG_SET_USER_LIMITS_SUPPORTED
#
if !defined(PNG_NO_SET_USER_LIMITS) && !defined(PNG_SET_USER_LIMITS_SUPPORTED)
#if
ndef PNG_1_0_X
#
ifndef PNG_SET_USER_LIMITS_SUPPORTED
#
ifndef PNG_NO_SET_USER_LIMITS
# define PNG_SET_USER_LIMITS_SUPPORTED
#endif
#endif
#
endif
#
endif
#endif
/* PNG_1_0_X */
/* Added at libpng-1.0.16 and 1.2.6. To accept all valid PNGS no matter
...
...
pngget.c
浏览文件 @
3dfd0cd6
/* pngget.c - retrieval of values from info struct
*
* Last changed in libpng 1.2.41 [September
25
, 2009]
* Last changed in libpng 1.2.41 [September
30
, 2009]
* Copyright (c) 1998-2009 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.)
...
...
@@ -577,6 +577,19 @@ png_get_IHDR(png_structp png_ptr, png_infop info_ptr,
height
==
NULL
||
bit_depth
==
NULL
||
color_type
==
NULL
)
return
(
0
);
#ifdef PNG_DEBUG
/* Test to make sure the user isn't trying to stuff height into
* a 16-bit int (assuming height immediately follows width).
*/
*
width
=
0
;
*
height
=
PNG_UINT_31_MAX
;
if
(
*
width
!=
0
)
{
png_warning
(
png_ptr
,
"Application's height variable cannot hold a 32-bit value"
);
}
#endif
*
width
=
info_ptr
->
width
;
*
height
=
info_ptr
->
height
;
*
bit_depth
=
info_ptr
->
bit_depth
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录