Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
ece0b0e1
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
ece0b0e1
编写于
12月 02, 2019
作者:
S
serb
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8230597: Update GIFlib library to the 5.2.1
Reviewed-by: prr, psadhukhan, jdv
上级
56d3f322
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
20 addition
and
32 deletion
+20
-32
THIRD_PARTY_README
THIRD_PARTY_README
+1
-1
src/share/native/sun/awt/giflib/dgif_lib.c
src/share/native/sun/awt/giflib/dgif_lib.c
+6
-8
src/share/native/sun/awt/giflib/gif_err.c
src/share/native/sun/awt/giflib/gif_err.c
+2
-0
src/share/native/sun/awt/giflib/gif_hash.h
src/share/native/sun/awt/giflib/gif_hash.h
+2
-0
src/share/native/sun/awt/giflib/gif_lib.h
src/share/native/sun/awt/giflib/gif_lib.h
+4
-11
src/share/native/sun/awt/giflib/gif_lib_private.h
src/share/native/sun/awt/giflib/gif_lib_private.h
+2
-0
src/share/native/sun/awt/giflib/gifalloc.c
src/share/native/sun/awt/giflib/gifalloc.c
+2
-0
src/share/native/sun/awt/giflib/openbsd-reallocarray.c
src/share/native/sun/awt/giflib/openbsd-reallocarray.c
+1
-12
未找到文件。
THIRD_PARTY_README
浏览文件 @
ece0b0e1
...
@@ -1643,7 +1643,7 @@ July 15, 2018
...
@@ -1643,7 +1643,7 @@ July 15, 2018
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
%% This notice is provided with respect to GIFLIB 5.
1.8
& libungif 4.1.3,
%% This notice is provided with respect to GIFLIB 5.
2.1
& libungif 4.1.3,
which may be included with JRE 8, JDK 8, and OpenJDK 8.
which may be included with JRE 8, JDK 8, and OpenJDK 8.
--- begin of LICENSE ---
--- begin of LICENSE ---
...
...
src/share/native/sun/awt/giflib/dgif_lib.c
浏览文件 @
ece0b0e1
...
@@ -30,22 +30,21 @@ The functions here and in egif_lib.c are partitioned carefully so that
...
@@ -30,22 +30,21 @@ The functions here and in egif_lib.c are partitioned carefully so that
if you only require one of read and write capability, only one of these
if you only require one of read and write capability, only one of these
two modules will be linked. Preserve this property!
two modules will be linked. Preserve this property!
SPDX-License-Identifier: MIT
*****************************************************************************/
*****************************************************************************/
#include <stdlib.h>
#include <stdlib.h>
#include <limits.h>
#include <limits.h>
#include <stdint.h>
#include <stdint.h>
#include <fcntl.h>
#include <fcntl.h>
/** Begin JDK modifications to support building on Windows **/
#ifndef _WIN32
#include <unistd.h>
#endif
/** End JDK modifications to support building on Windows **/
#include <stdio.h>
#include <stdio.h>
#include <string.h>
#include <string.h>
#ifdef _WIN32
#ifdef _WIN32
#include <io.h>
#include <io.h>
#else
#include <unistd.h>
#endif
/* _WIN32 */
#endif
/* _WIN32 */
#include "gif_lib.h"
#include "gif_lib.h"
...
@@ -55,8 +54,7 @@ two modules will be linked. Preserve this property!
...
@@ -55,8 +54,7 @@ two modules will be linked. Preserve this property!
#define UNSIGNED_LITTLE_ENDIAN(lo, hi) ((lo) | ((hi) << 8))
#define UNSIGNED_LITTLE_ENDIAN(lo, hi) ((lo) | ((hi) << 8))
/* avoid extra function call in case we use fread (TVT) */
/* avoid extra function call in case we use fread (TVT) */
/** JDK modification "inline" is dropped to support c89 **/
static
int
InternalRead
(
GifFileType
*
gif
,
GifByteType
*
buf
,
int
len
)
{
static
/**inline**/
int
InternalRead
(
GifFileType
*
gif
,
GifByteType
*
buf
,
int
len
)
{
//fprintf(stderr, "### Read: %d\n", len);
//fprintf(stderr, "### Read: %d\n", len);
return
return
(((
GifFilePrivateType
*
)
gif
->
Private
)
->
Read
?
(((
GifFilePrivateType
*
)
gif
->
Private
)
->
Read
?
...
@@ -969,7 +967,7 @@ DGifDecompressLine(GifFileType *GifFile, GifPixelType *Line, int LineLen)
...
@@ -969,7 +967,7 @@ DGifDecompressLine(GifFileType *GifFile, GifPixelType *Line, int LineLen)
while
(
StackPtr
!=
0
&&
i
<
LineLen
)
while
(
StackPtr
!=
0
&&
i
<
LineLen
)
Line
[
i
++
]
=
Stack
[
--
StackPtr
];
Line
[
i
++
]
=
Stack
[
--
StackPtr
];
}
}
if
(
LastCode
!=
NO_SUCH_CODE
&&
Private
->
RunningCode
-
2
<
LZ_MAX_CODE
&&
Prefix
[
Private
->
RunningCode
-
2
]
==
NO_SUCH_CODE
)
{
if
(
LastCode
!=
NO_SUCH_CODE
&&
Private
->
RunningCode
-
2
<
(
LZ_MAX_CODE
+
1
)
&&
Prefix
[
Private
->
RunningCode
-
2
]
==
NO_SUCH_CODE
)
{
Prefix
[
Private
->
RunningCode
-
2
]
=
LastCode
;
Prefix
[
Private
->
RunningCode
-
2
]
=
LastCode
;
if
(
CrntCode
==
Private
->
RunningCode
-
2
)
{
if
(
CrntCode
==
Private
->
RunningCode
-
2
)
{
...
...
src/share/native/sun/awt/giflib/gif_err.c
浏览文件 @
ece0b0e1
...
@@ -26,6 +26,8 @@
...
@@ -26,6 +26,8 @@
gif_err.c - handle error reporting for the GIF library.
gif_err.c - handle error reporting for the GIF library.
SPDX-License-Identifier: MIT
****************************************************************************/
****************************************************************************/
#include <stdio.h>
#include <stdio.h>
...
...
src/share/native/sun/awt/giflib/gif_hash.h
浏览文件 @
ece0b0e1
...
@@ -26,6 +26,8 @@
...
@@ -26,6 +26,8 @@
gif_hash.h - magfic constants and declarations for GIF LZW
gif_hash.h - magfic constants and declarations for GIF LZW
SPDX-License-Identifier: MIT
******************************************************************************/
******************************************************************************/
#ifndef _GIF_HASH_H_
#ifndef _GIF_HASH_H_
...
...
src/share/native/sun/awt/giflib/gif_lib.h
浏览文件 @
ece0b0e1
...
@@ -26,6 +26,8 @@
...
@@ -26,6 +26,8 @@
gif_lib.h - service library for decoding and encoding GIF images
gif_lib.h - service library for decoding and encoding GIF images
SPDX-License-Identifier: MIT
*****************************************************************************/
*****************************************************************************/
#ifndef _GIF_LIB_H_
#ifndef _GIF_LIB_H_
...
@@ -36,8 +38,8 @@ extern "C" {
...
@@ -36,8 +38,8 @@ extern "C" {
#endif
/* __cplusplus */
#endif
/* __cplusplus */
#define GIFLIB_MAJOR 5
#define GIFLIB_MAJOR 5
#define GIFLIB_MINOR
1
#define GIFLIB_MINOR
2
#define GIFLIB_RELEASE
8
#define GIFLIB_RELEASE
1
#define GIF_ERROR 0
#define GIF_ERROR 0
#define GIF_OK 1
#define GIF_OK 1
...
@@ -246,15 +248,6 @@ int DGifGetLZCodes(GifFileType *GifFile, int *GifCode);
...
@@ -246,15 +248,6 @@ int DGifGetLZCodes(GifFileType *GifFile, int *GifCode);
const
char
*
DGifGetGifVersion
(
GifFileType
*
GifFile
);
const
char
*
DGifGetGifVersion
(
GifFileType
*
GifFile
);
/******************************************************************************
Color table quantization (deprecated)
******************************************************************************/
int
GifQuantizeBuffer
(
unsigned
int
Width
,
unsigned
int
Height
,
int
*
ColorMapSize
,
GifByteType
*
RedInput
,
GifByteType
*
GreenInput
,
GifByteType
*
BlueInput
,
GifByteType
*
OutputBuffer
,
GifColorType
*
OutputColorMap
);
/******************************************************************************
/******************************************************************************
Error handling and reporting.
Error handling and reporting.
******************************************************************************/
******************************************************************************/
...
...
src/share/native/sun/awt/giflib/gif_lib_private.h
浏览文件 @
ece0b0e1
...
@@ -26,6 +26,8 @@
...
@@ -26,6 +26,8 @@
gif_lib_private.h - internal giflib routines and structures
gif_lib_private.h - internal giflib routines and structures
SPDX-License-Identifier: MIT
****************************************************************************/
****************************************************************************/
#ifndef _GIF_LIB_PRIVATE_H
#ifndef _GIF_LIB_PRIVATE_H
...
...
src/share/native/sun/awt/giflib/gifalloc.c
浏览文件 @
ece0b0e1
...
@@ -26,6 +26,8 @@
...
@@ -26,6 +26,8 @@
GIF construction tools
GIF construction tools
SPDX-License-Identifier: MIT
****************************************************************************/
****************************************************************************/
#include <stdlib.h>
#include <stdlib.h>
...
...
src/share/native/sun/awt/giflib/openbsd-reallocarray.c
浏览文件 @
ece0b0e1
...
@@ -25,18 +25,7 @@
...
@@ -25,18 +25,7 @@
/* $OpenBSD: reallocarray.c,v 1.1 2014/05/08 21:43:49 deraadt Exp $ */
/* $OpenBSD: reallocarray.c,v 1.1 2014/05/08 21:43:49 deraadt Exp $ */
/*
/*
* Copyright (c) 2008 Otto Moerbeek <otto@drijf.net>
* Copyright (c) 2008 Otto Moerbeek <otto@drijf.net>
*
* SPDX-License-Identifier: MIT
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
*/
#include <sys/types.h>
#include <sys/types.h>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录