Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
ff16ef33
T
Third Party Harfbuzz
项目概览
OpenHarmony
/
Third Party Harfbuzz
接近 2 年 前同步成功
通知
1
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看板
提交
ff16ef33
编写于
11月 18, 2015
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Enable building a bounded version of the library for fuzzing
test/fuzzing/hb-fuzzer links against libharfbuzz-fuzzing.so now.
上级
e0082ae6
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
20 addition
and
11 deletion
+20
-11
src/Makefile.am
src/Makefile.am
+16
-0
test/fuzzing/Makefile.am
test/fuzzing/Makefile.am
+2
-7
test/fuzzing/README
test/fuzzing/README
+2
-4
未找到文件。
src/Makefile.am
浏览文件 @
ff16ef33
...
@@ -15,6 +15,7 @@ DISTCHECK_CONFIGURE_FLAGS = --enable-introspection
...
@@ -15,6 +15,7 @@ DISTCHECK_CONFIGURE_FLAGS = --enable-introspection
# Convenience targets:
# Convenience targets:
lib
:
$(BUILT_SOURCES) libharfbuzz.la
lib
:
$(BUILT_SOURCES) libharfbuzz.la
fuzzing
:
$(BUILT_SOURCES) libharfbuzz-fuzzing.la
lib_LTLIBRARIES
=
libharfbuzz.la
lib_LTLIBRARIES
=
libharfbuzz.la
...
@@ -219,6 +220,21 @@ pkgconfigdir = $(libdir)/pkgconfig
...
@@ -219,6 +220,21 @@ pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA
=
harfbuzz.pc
pkgconfig_DATA
=
harfbuzz.pc
EXTRA_DIST
+=
harfbuzz.pc.in
EXTRA_DIST
+=
harfbuzz.pc.in
FUZZING_CPPFLAGS
=
\
-DHB_MAX_NESTING_LEVEL
=
3
\
-DHB_SANITIZE_MAX_EDITS
=
3
\
-DHB_BUFFER_MAX_EXPANSION_FACTOR
=
3
\
-DHB_BUFFER_MAX_LEN_MIN
=
8
\
-DHB_BUFFER_MAX_LEN_DEFAULT
=
128
\
$(NULL)
EXTRA_LTLIBRARIES
=
libharfbuzz-fuzzing.la
libharfbuzz_fuzzing_la_LINK
=
$(libharfbuzz_la_LINK)
libharfbuzz_fuzzing_la_SOURCES
=
$(libharfbuzz_la_SOURCES)
libharfbuzz_fuzzing_la_CPPFLAGS
=
$(libharfbuzz_la_CPPFLAGS)
$(FUZZING_CPPFLAGS)
libharfbuzz_fuzzing_la_LDFLAGS
=
$(libharfbuzz_la_LDFLAGS)
libharfbuzz_fuzzing_la_LIBADD
=
$(libharfbuzz_la_LIBADD)
EXTRA_libharfbuzz_fuzzing_la_DEPENDENCIES
=
$(EXTRA_libharfbuzz_la_DEPENDENCIES)
if
HAVE_ICU
if
HAVE_ICU
lib_LTLIBRARIES
+=
libharfbuzz-icu.la
lib_LTLIBRARIES
+=
libharfbuzz-icu.la
libharfbuzz_icu_la_SOURCES
=
hb-icu.cc
libharfbuzz_icu_la_SOURCES
=
hb-icu.cc
...
...
test/fuzzing/Makefile.am
浏览文件 @
ff16ef33
...
@@ -8,7 +8,7 @@ MAINTAINERCLEANFILES =
...
@@ -8,7 +8,7 @@ MAINTAINERCLEANFILES =
# Convenience targets:
# Convenience targets:
lib
:
lib
:
@
$(MAKE)
$(AM_MAKEFLAGS)
-C
$(top_builddir)
/src
lib
@
$(MAKE)
$(AM_MAKEFLAGS)
-C
$(top_builddir)
/src
fuzzing
EXTRA_DIST
+=
\
EXTRA_DIST
+=
\
README
\
README
\
...
@@ -25,7 +25,7 @@ AM_CPPFLAGS = \
...
@@ -25,7 +25,7 @@ AM_CPPFLAGS = \
-I
$(top_builddir)
/src/
\
-I
$(top_builddir)
/src/
\
$(NULL)
$(NULL)
LDADD
=
\
LDADD
=
\
$(top_builddir)
/src/libharfbuzz.la
\
$(top_builddir)
/src/libharfbuzz
-fuzzing
.la
\
$(NULL)
$(NULL)
hb_fuzzer_SOURCES
=
\
hb_fuzzer_SOURCES
=
\
...
@@ -37,11 +37,6 @@ hb_fuzzer_LDADD = \
...
@@ -37,11 +37,6 @@ hb_fuzzer_LDADD = \
hb_fuzzer_CPPFLAGS
=
\
hb_fuzzer_CPPFLAGS
=
\
$(AM_CPPFLAGS)
\
$(AM_CPPFLAGS)
\
-DMAIN
\
-DMAIN
\
-DHB_MAX_NESTING_LEVEL
=
3
\
-DHB_SANITIZE_MAX_EDITS
=
3
\
-DHB_BUFFER_MAX_EXPANSION_FACTOR
=
3
\
-DHB_BUFFER_MAX_LEN_MIN
=
8
\
-DHB_BUFFER_MAX_LEN_DEFAULT
=
128
\
$(NULL)
$(NULL)
-include
$(top_srcdir)/git.mk
-include
$(top_srcdir)/git.mk
test/fuzzing/README
浏览文件 @
ff16ef33
...
@@ -3,10 +3,8 @@ harfbuzz/test/fuzzing/hb-fuzzer.cc with:
...
@@ -3,10 +3,8 @@ harfbuzz/test/fuzzing/hb-fuzzer.cc with:
- Using the most recent Clang
- Using the most recent Clang
- With -fsanitize=address (or =undefined, or a combination)
- With -fsanitize=address (or =undefined, or a combination)
- With -fsanitize-coverage=edge[,8bit-counters,trace-cmp]
- With -fsanitize-coverage=edge[,8bit-counters,trace-cmp]
- With various defines that limit worst case exponential behavior:
- With various defines that limit worst case exponential behavior.
* -DHB_MAX_NESTING_LEVEL=3
See FUZZING_CPPFLAGS in harfbuzz/src/Makefile.am for the list.
* -DHB_SANITIZE_MAX_EDITS=3
* See Makefile.am for full list of flags
- link against libFuzzer
- link against libFuzzer
To run the fuzzer one needs to first obtain a test corpus as a directory
To run the fuzzer one needs to first obtain a test corpus as a directory
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录