From 584693e0cb3585a910b18d7916d7e554ecdf619a Mon Sep 17 00:00:00 2001 From: Garret Rieger Date: Thu, 15 Mar 2018 18:27:01 -0700 Subject: [PATCH] [subset] Test not linking libharfbuzz-subset-fuzzing into hb-subset-fuzzer. --- test/fuzzing/Makefile.am | 2 +- test/fuzzing/hb-subset-fuzzer.cc | 2 ++ test/fuzzing/run-subset-fuzzer-tests.py | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/fuzzing/Makefile.am b/test/fuzzing/Makefile.am index a57f41dc8..dc9f9016f 100644 --- a/test/fuzzing/Makefile.am +++ b/test/fuzzing/Makefile.am @@ -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) \ diff --git a/test/fuzzing/hb-subset-fuzzer.cc b/test/fuzzing/hb-subset-fuzzer.cc index 1e26d26a9..c59a8e28c 100644 --- a/test/fuzzing/hb-subset-fuzzer.cc +++ b/test/fuzzing/hb-subset-fuzzer.cc @@ -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; } diff --git a/test/fuzzing/run-subset-fuzzer-tests.py b/test/fuzzing/run-subset-fuzzer-tests.py index b0bb52ced..229881a4c 100755 --- a/test/fuzzing/run-subset-fuzzer-tests.py +++ b/test/fuzzing/run-subset-fuzzer-tests.py @@ -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]):