[subset] Restore subset to hb-subset-fuzzer.

This commit is contained in:
Garret Rieger 2018-03-16 10:20:21 -07:00
parent 957e775663
commit b5c7d6cffc
2 changed files with 1 additions and 3 deletions

View File

@ -55,7 +55,7 @@ hb_subset_fuzzer_SOURCES = \
main.cc \ main.cc \
$(NULL) $(NULL)
hb_subset_fuzzer_LDADD = \ hb_subset_fuzzer_LDADD = \
$(top_builddir)/src/libharfbuzz-fuzzing.la \ $(top_builddir)/src/libharfbuzz-subset-fuzzing.la \
$(NULL) $(NULL)
hb_subset_fuzzer_CPPFLAGS = \ hb_subset_fuzzer_CPPFLAGS = \
$(AM_CPPFLAGS) \ $(AM_CPPFLAGS) \

View File

@ -9,7 +9,6 @@
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
{ {
printf ("hb-subset-fuzzer: input size = %zu\n", size); printf ("hb-subset-fuzzer: input size = %zu\n", size);
/*
hb_blob_t *blob = hb_blob_create ((const char *)data, size, hb_blob_t *blob = hb_blob_create ((const char *)data, size,
HB_MEMORY_MODE_READONLY, NULL, NULL); HB_MEMORY_MODE_READONLY, NULL, NULL);
hb_face_t *face = hb_face_create (blob, 0); hb_face_t *face = hb_face_create (blob, 0);
@ -35,7 +34,6 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
hb_subset_profile_destroy (profile); hb_subset_profile_destroy (profile);
hb_face_destroy (face); hb_face_destroy (face);
hb_blob_destroy (blob); hb_blob_destroy (blob);
*/
return 0; return 0;
} }