projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1019391
)
[fuzzing] Call hb-ot-color API
author
Behdad Esfahbod
<behdad@behdad.org>
Wed, 31 Oct 2018 02:06:21 +0000
(19:06 -0700)
committer
Behdad Esfahbod
<behdad@behdad.org>
Wed, 31 Oct 2018 02:07:38 +0000
(19:07 -0700)
test/fuzzing/hb-shape-fuzzer.cc
patch
|
blob
|
history
diff --git
a/test/fuzzing/hb-shape-fuzzer.cc
b/test/fuzzing/hb-shape-fuzzer.cc
index
b5a6c12
..
e8bc186
100644
(file)
--- a/
test/fuzzing/hb-shape-fuzzer.cc
+++ b/
test/fuzzing/hb-shape-fuzzer.cc
@@
-39,6
+39,10
@@
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
hb_glyph_extents_t extents;
hb_font_get_glyph_extents (font, info.codepoint, &extents);
+
+ hb_ot_color_glyph_get_layers (face, info.codepoint, 0, nullptr, nullptr);
+ hb_blob_destroy (hb_ot_color_glyph_reference_svg (face, info.codepoint));
+ hb_blob_destroy (hb_ot_color_glyph_reference_png (font, info.codepoint));
}
hb_buffer_destroy (buffer);