[subset] Test not linking libharfbuzz-subset-fuzzing into hb-subset-fuzzer.
This commit is contained in:
parent
3f9361fe7a
commit
584693e0cb
|
@ -55,7 +55,7 @@ hb_subset_fuzzer_SOURCES = \
|
|||
main.cc \
|
||||
$(NULL)
|
||||
hb_subset_fuzzer_LDADD = \
|
||||
$(top_builddir)/src/libharfbuzz-subset-fuzzing.la \
|
||||
$(top_builddir)/src/libharfbuzz-fuzzing.la \
|
||||
$(NULL)
|
||||
hb_subset_fuzzer_CPPFLAGS = \
|
||||
$(AM_CPPFLAGS) \
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
|
||||
{
|
||||
printf ("hb-subset-fuzzer: input size = %zu\n", size);
|
||||
/*
|
||||
hb_blob_t *blob = hb_blob_create ((const char *)data, size,
|
||||
HB_MEMORY_MODE_READONLY, NULL, NULL);
|
||||
hb_face_t *face = hb_face_create (blob, 0);
|
||||
|
@ -34,6 +35,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
|
|||
hb_subset_profile_destroy (profile);
|
||||
hb_face_destroy (face);
|
||||
hb_blob_destroy (blob);
|
||||
*/
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ import sys, os, subprocess
|
|||
srcdir = os.environ.get ("srcdir", ".")
|
||||
EXEEXT = os.environ.get ("EXEEXT", "")
|
||||
top_builddir = os.environ.get ("top_builddir", ".")
|
||||
hb_subset_fuzzer = os.path.join (top_builddir, "hb-shape-fuzzer" + EXEEXT)
|
||||
hb_subset_fuzzer = os.path.join (top_builddir, "hb-subset-fuzzer" + EXEEXT)
|
||||
|
||||
if not os.path.exists (hb_subset_fuzzer):
|
||||
if len (sys.argv) == 1 or not os.path.exists (sys.argv[1]):
|
||||
|
|
Loading…
Reference in New Issue