Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
1aaa7d67
T
Third Party Harfbuzz
项目概览
OpenHarmony
/
Third Party Harfbuzz
1 年多 前同步成功
通知
0
Star
18
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Harfbuzz
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
1aaa7d67
编写于
1月 17, 2015
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[indic] Fix out-of-bounds access
上级
238d6a38
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
19 addition
and
19 deletion
+19
-19
src/gen-indic-table.py
src/gen-indic-table.py
+1
-1
src/hb-ot-shape-complex-indic-table.cc
src/hb-ot-shape-complex-indic-table.cc
+18
-18
未找到文件。
src/gen-indic-table.py
浏览文件 @
1aaa7d67
...
...
@@ -209,7 +209,7 @@ for p in sorted(pages):
for
(
start
,
end
)
in
zip
(
starts
,
ends
):
if
p
not
in
[
start
>>
page_bits
,
end
>>
page_bits
]:
continue
offset
=
"indic_offset_0x%04xu"
%
start
print
" if (hb_in_range (u, 0x%04Xu, 0x%04Xu)) return indic_table[u - 0x%04Xu + %s];"
%
(
start
,
end
,
start
,
offset
)
print
" if (hb_in_range (u, 0x%04Xu, 0x%04Xu)) return indic_table[u - 0x%04Xu + %s];"
%
(
start
,
end
-
1
,
start
,
offset
)
for
u
,
d
in
singles
.
items
():
if
p
!=
u
>>
page_bits
:
continue
print
" if (unlikely (u == 0x%04Xu)) return _(%s,%s);"
%
(
u
,
short
[
0
][
d
[
0
]],
short
[
1
][
d
[
1
]])
...
...
src/hb-ot-shape-complex-indic-table.cc
浏览文件 @
1aaa7d67
...
...
@@ -861,41 +861,41 @@ hb_indic_get_categories (hb_codepoint_t u)
switch
(
u
>>
12
)
{
case
0x0u
:
if
(
hb_in_range
(
u
,
0x0028u
,
0x00
40
u
))
return
indic_table
[
u
-
0x0028u
+
indic_offset_0x0028u
];
if
(
hb_in_range
(
u
,
0x00D0u
,
0x00D
8
u
))
return
indic_table
[
u
-
0x00D0u
+
indic_offset_0x00d0u
];
if
(
hb_in_range
(
u
,
0x0900u
,
0x0DF
8
u
))
return
indic_table
[
u
-
0x0900u
+
indic_offset_0x0900u
];
if
(
hb_in_range
(
u
,
0x0028u
,
0x00
3F
u
))
return
indic_table
[
u
-
0x0028u
+
indic_offset_0x0028u
];
if
(
hb_in_range
(
u
,
0x00D0u
,
0x00D
7
u
))
return
indic_table
[
u
-
0x00D0u
+
indic_offset_0x00d0u
];
if
(
hb_in_range
(
u
,
0x0900u
,
0x0DF
7
u
))
return
indic_table
[
u
-
0x0900u
+
indic_offset_0x0900u
];
if
(
unlikely
(
u
==
0x00A0u
))
return
_
(
CP
,
x
);
break
;
case
0x1u
:
if
(
hb_in_range
(
u
,
0x1000u
,
0x10
A0
u
))
return
indic_table
[
u
-
0x1000u
+
indic_offset_0x1000u
];
if
(
hb_in_range
(
u
,
0x1700u
,
0x17
F0
u
))
return
indic_table
[
u
-
0x1700u
+
indic_offset_0x1700u
];
if
(
hb_in_range
(
u
,
0x1900u
,
0x1A
A0
u
))
return
indic_table
[
u
-
0x1900u
+
indic_offset_0x1900u
];
if
(
hb_in_range
(
u
,
0x1B00u
,
0x1C
50
u
))
return
indic_table
[
u
-
0x1B00u
+
indic_offset_0x1b00u
];
if
(
hb_in_range
(
u
,
0x1CD0u
,
0x1CF
8
u
))
return
indic_table
[
u
-
0x1CD0u
+
indic_offset_0x1cd0u
];
if
(
hb_in_range
(
u
,
0x1000u
,
0x10
9F
u
))
return
indic_table
[
u
-
0x1000u
+
indic_offset_0x1000u
];
if
(
hb_in_range
(
u
,
0x1700u
,
0x17
EF
u
))
return
indic_table
[
u
-
0x1700u
+
indic_offset_0x1700u
];
if
(
hb_in_range
(
u
,
0x1900u
,
0x1A
9F
u
))
return
indic_table
[
u
-
0x1900u
+
indic_offset_0x1900u
];
if
(
hb_in_range
(
u
,
0x1B00u
,
0x1C
4F
u
))
return
indic_table
[
u
-
0x1B00u
+
indic_offset_0x1b00u
];
if
(
hb_in_range
(
u
,
0x1CD0u
,
0x1CF
7
u
))
return
indic_table
[
u
-
0x1CD0u
+
indic_offset_0x1cd0u
];
break
;
case
0x2u
:
if
(
hb_in_range
(
u
,
0x2008u
,
0x201
8
u
))
return
indic_table
[
u
-
0x2008u
+
indic_offset_0x2008u
];
if
(
hb_in_range
(
u
,
0x2008u
,
0x201
7
u
))
return
indic_table
[
u
-
0x2008u
+
indic_offset_0x2008u
];
if
(
unlikely
(
u
==
0x25CCu
))
return
_
(
CP
,
x
);
break
;
case
0xAu
:
if
(
hb_in_range
(
u
,
0xA800u
,
0xAAF
8
u
))
return
indic_table
[
u
-
0xA800u
+
indic_offset_0xa800u
];
if
(
hb_in_range
(
u
,
0xABC0u
,
0xA
C00
u
))
return
indic_table
[
u
-
0xABC0u
+
indic_offset_0xabc0u
];
if
(
hb_in_range
(
u
,
0xA800u
,
0xAAF
7
u
))
return
indic_table
[
u
-
0xA800u
+
indic_offset_0xa800u
];
if
(
hb_in_range
(
u
,
0xABC0u
,
0xA
BFF
u
))
return
indic_table
[
u
-
0xABC0u
+
indic_offset_0xabc0u
];
break
;
case
0x10u
:
if
(
hb_in_range
(
u
,
0x10A00u
,
0x10A4
8
u
))
return
indic_table
[
u
-
0x10A00u
+
indic_offset_0x10a00u
];
if
(
hb_in_range
(
u
,
0x10A00u
,
0x10A4
7
u
))
return
indic_table
[
u
-
0x10A00u
+
indic_offset_0x10a00u
];
break
;
case
0x11u
:
if
(
hb_in_range
(
u
,
0x11000u
,
0x110
C0
u
))
return
indic_table
[
u
-
0x11000u
+
indic_offset_0x11000u
];
if
(
hb_in_range
(
u
,
0x11100u
,
0x1123
8
u
))
return
indic_table
[
u
-
0x11100u
+
indic_offset_0x11100u
];
if
(
hb_in_range
(
u
,
0x112B0u
,
0x1137
8
u
))
return
indic_table
[
u
-
0x112B0u
+
indic_offset_0x112b0u
];
if
(
hb_in_range
(
u
,
0x11480u
,
0x114
E0
u
))
return
indic_table
[
u
-
0x11480u
+
indic_offset_0x11480u
];
if
(
hb_in_range
(
u
,
0x11580u
,
0x115C
8
u
))
return
indic_table
[
u
-
0x11580u
+
indic_offset_0x11580u
];
if
(
hb_in_range
(
u
,
0x11600u
,
0x116
D0
u
))
return
indic_table
[
u
-
0x11600u
+
indic_offset_0x11600u
];
if
(
hb_in_range
(
u
,
0x11000u
,
0x110
BF
u
))
return
indic_table
[
u
-
0x11000u
+
indic_offset_0x11000u
];
if
(
hb_in_range
(
u
,
0x11100u
,
0x1123
7
u
))
return
indic_table
[
u
-
0x11100u
+
indic_offset_0x11100u
];
if
(
hb_in_range
(
u
,
0x112B0u
,
0x1137
7
u
))
return
indic_table
[
u
-
0x112B0u
+
indic_offset_0x112b0u
];
if
(
hb_in_range
(
u
,
0x11480u
,
0x114
DF
u
))
return
indic_table
[
u
-
0x11480u
+
indic_offset_0x11480u
];
if
(
hb_in_range
(
u
,
0x11580u
,
0x115C
7
u
))
return
indic_table
[
u
-
0x11580u
+
indic_offset_0x11580u
];
if
(
hb_in_range
(
u
,
0x11600u
,
0x116
CF
u
))
return
indic_table
[
u
-
0x11600u
+
indic_offset_0x11600u
];
break
;
default:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录