[Libreoffice-commits] libcdr.git: src/fuzz

David Tardon dtardon at redhat.com
Thu Sep 28 18:37:08 UTC 2017


 src/fuzz/cdrfuzzer.cpp |    4 ++--
 src/fuzz/cmxfuzzer.cpp |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

New commits:
commit aaae42c47cf37aea717552b71e216833de4c1005
Author: David Tardon <dtardon at redhat.com>
Date:   Thu Sep 28 20:35:28 2017 +0200

    avoid output from fuzzers
    
    Change-Id: I5576cf0571e89cd0338df38bd15e0abce0488195

diff --git a/src/fuzz/cdrfuzzer.cpp b/src/fuzz/cdrfuzzer.cpp
index 3450751..46b7115 100644
--- a/src/fuzz/cdrfuzzer.cpp
+++ b/src/fuzz/cdrfuzzer.cpp
@@ -12,14 +12,14 @@
 
 #include <libcdr/libcdr.h>
 
-#include <librevenge-generators/librevenge-generators.h>
+#include <librevenge-generators/RVNGDummyDrawingGenerator.h>
 
 #include <librevenge-stream/librevenge-stream.h>
 
 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
 {
   librevenge::RVNGStringStream input(data, size);
-  librevenge::RVNGRawDrawingGenerator generator(true);
+  librevenge::RVNGDummyDrawingGenerator generator;
   libcdr::CDRDocument::parse(&input, &generator);
   return 0;
 }
diff --git a/src/fuzz/cmxfuzzer.cpp b/src/fuzz/cmxfuzzer.cpp
index caf9693..713c93d 100644
--- a/src/fuzz/cmxfuzzer.cpp
+++ b/src/fuzz/cmxfuzzer.cpp
@@ -12,14 +12,14 @@
 
 #include <libcdr/libcdr.h>
 
-#include <librevenge-generators/librevenge-generators.h>
+#include <librevenge-generators/RVNGDummyDrawingGenerator.h>
 
 #include <librevenge-stream/librevenge-stream.h>
 
 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
 {
   librevenge::RVNGStringStream input(data, size);
-  librevenge::RVNGRawDrawingGenerator generator(true);
+  librevenge::RVNGDummyDrawingGenerator generator;
   libcdr::CMXDocument::parse(&input, &generator);
   return 0;
 }


More information about the Libreoffice-commits mailing list