Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
adec89fb
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看板
提交
adec89fb
编写于
3月 10, 2015
作者:
P
prr
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8074098: 2D_Font/Bug8067699 test fails with SIGBUS crash on Solaris Sparc
Reviewed-by: bae, mschoene
上级
335d110f
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
16 addition
and
0 deletion
+16
-0
src/share/native/sun/font/layout/MorphTables.cpp
src/share/native/sun/font/layout/MorphTables.cpp
+8
-0
src/share/native/sun/font/layout/MorphTables2.cpp
src/share/native/sun/font/layout/MorphTables2.cpp
+8
-0
未找到文件。
src/share/native/sun/font/layout/MorphTables.cpp
浏览文件 @
adec89fb
...
@@ -54,6 +54,10 @@ void MorphTableHeader::process(const LETableReference &base, LEGlyphStorage &gly
...
@@ -54,6 +54,10 @@ void MorphTableHeader::process(const LETableReference &base, LEGlyphStorage &gly
for
(
chain
=
0
;
LE_SUCCESS
(
success
)
&&
(
chain
<
chainCount
);
chain
+=
1
)
{
for
(
chain
=
0
;
LE_SUCCESS
(
success
)
&&
(
chain
<
chainCount
);
chain
+=
1
)
{
if
(
chain
>
0
)
{
if
(
chain
>
0
)
{
le_uint32
chainLength
=
SWAPL
(
chainHeader
->
chainLength
);
le_uint32
chainLength
=
SWAPL
(
chainHeader
->
chainLength
);
if
(
chainLength
&
0x03
)
{
// incorrect alignment for 32 bit tables
success
=
LE_MEMORY_ALLOCATION_ERROR
;
// as good a choice as any
return
;
}
chainHeader
.
addOffset
(
chainLength
,
success
);
chainHeader
.
addOffset
(
chainLength
,
success
);
}
}
FeatureFlags
defaultFlags
=
SWAPL
(
chainHeader
->
defaultFlags
);
FeatureFlags
defaultFlags
=
SWAPL
(
chainHeader
->
defaultFlags
);
...
@@ -66,6 +70,10 @@ void MorphTableHeader::process(const LETableReference &base, LEGlyphStorage &gly
...
@@ -66,6 +70,10 @@ void MorphTableHeader::process(const LETableReference &base, LEGlyphStorage &gly
for
(
subtable
=
0
;
LE_SUCCESS
(
success
)
&&
(
subtable
<
nSubtables
);
subtable
+=
1
)
{
for
(
subtable
=
0
;
LE_SUCCESS
(
success
)
&&
(
subtable
<
nSubtables
);
subtable
+=
1
)
{
if
(
subtable
>
0
)
{
if
(
subtable
>
0
)
{
le_int16
length
=
SWAPW
(
subtableHeader
->
length
);
le_int16
length
=
SWAPW
(
subtableHeader
->
length
);
if
(
length
&
0x03
)
{
// incorrect alignment for 32 bit tables
success
=
LE_MEMORY_ALLOCATION_ERROR
;
// as good a choice as any
return
;
}
subtableHeader
.
addOffset
(
length
,
success
);
subtableHeader
.
addOffset
(
length
,
success
);
}
}
SubtableCoverage
coverage
=
SWAPW
(
subtableHeader
->
coverage
);
SubtableCoverage
coverage
=
SWAPW
(
subtableHeader
->
coverage
);
...
...
src/share/native/sun/font/layout/MorphTables2.cpp
浏览文件 @
adec89fb
...
@@ -59,6 +59,10 @@ void MorphTableHeader2::process(const LEReferenceTo<MorphTableHeader2> &base, LE
...
@@ -59,6 +59,10 @@ void MorphTableHeader2::process(const LEReferenceTo<MorphTableHeader2> &base, LE
for
(
chain
=
0
;
LE_SUCCESS
(
success
)
&&
(
chain
<
chainCount
);
chain
++
)
{
for
(
chain
=
0
;
LE_SUCCESS
(
success
)
&&
(
chain
<
chainCount
);
chain
++
)
{
if
(
chain
>
0
)
{
if
(
chain
>
0
)
{
le_uint32
chainLength
=
SWAPL
(
chainHeader
->
chainLength
);
le_uint32
chainLength
=
SWAPL
(
chainHeader
->
chainLength
);
if
(
chainLength
&
0x03
)
{
// incorrect alignment for 32 bit tables
success
=
LE_MEMORY_ALLOCATION_ERROR
;
// as good a choice as any
return
;
}
chainHeader
.
addOffset
(
chainLength
,
success
);
// Don't increment the first time
chainHeader
.
addOffset
(
chainLength
,
success
);
// Don't increment the first time
}
}
FeatureFlags
flag
=
SWAPL
(
chainHeader
->
defaultFlags
);
FeatureFlags
flag
=
SWAPL
(
chainHeader
->
defaultFlags
);
...
@@ -188,6 +192,10 @@ void MorphTableHeader2::process(const LEReferenceTo<MorphTableHeader2> &base, LE
...
@@ -188,6 +192,10 @@ void MorphTableHeader2::process(const LEReferenceTo<MorphTableHeader2> &base, LE
for
(
subtable
=
0
;
LE_SUCCESS
(
success
)
&&
subtable
<
nSubtables
;
subtable
++
)
{
for
(
subtable
=
0
;
LE_SUCCESS
(
success
)
&&
subtable
<
nSubtables
;
subtable
++
)
{
if
(
subtable
>
0
)
{
if
(
subtable
>
0
)
{
le_uint32
length
=
SWAPL
(
subtableHeader
->
length
);
le_uint32
length
=
SWAPL
(
subtableHeader
->
length
);
if
(
length
&
0x03
)
{
// incorrect alignment for 32 bit tables
success
=
LE_MEMORY_ALLOCATION_ERROR
;
// as good a choice as any
return
;
}
subtableHeader
.
addOffset
(
length
,
success
);
// Don't addOffset for the last entry.
subtableHeader
.
addOffset
(
length
,
success
);
// Don't addOffset for the last entry.
}
}
le_uint32
coverage
=
SWAPL
(
subtableHeader
->
coverage
);
le_uint32
coverage
=
SWAPL
(
subtableHeader
->
coverage
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录