[Libreoffice-commits] libvisio.git: src/fuzz
David Tardon
dtardon at redhat.com
Thu Sep 28 18:56:42 UTC 2017
src/fuzz/vdxfuzzer.cpp | 4 ++--
src/fuzz/vsdfuzzer.cpp | 4 ++--
src/fuzz/vsdxfuzzer.cpp | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
New commits:
commit b068c3252bb6791077c8e5df166542e96e35ec9f
Author: David Tardon <dtardon at redhat.com>
Date: Thu Sep 28 20:55:24 2017 +0200
avoid output from fuzzers
Change-Id: I95dfbaf6f03892726b43f90e072f0122d4d971bb
diff --git a/src/fuzz/vdxfuzzer.cpp b/src/fuzz/vdxfuzzer.cpp
index f5b8f7e..09a35c7 100644
--- a/src/fuzz/vdxfuzzer.cpp
+++ b/src/fuzz/vdxfuzzer.cpp
@@ -12,14 +12,14 @@
#include <libvisio/libvisio.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;
libvisio::VisioDocument::parse(&input, &generator);
return 0;
}
diff --git a/src/fuzz/vsdfuzzer.cpp b/src/fuzz/vsdfuzzer.cpp
index f5b8f7e..09a35c7 100644
--- a/src/fuzz/vsdfuzzer.cpp
+++ b/src/fuzz/vsdfuzzer.cpp
@@ -12,14 +12,14 @@
#include <libvisio/libvisio.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;
libvisio::VisioDocument::parse(&input, &generator);
return 0;
}
diff --git a/src/fuzz/vsdxfuzzer.cpp b/src/fuzz/vsdxfuzzer.cpp
index f5b8f7e..09a35c7 100644
--- a/src/fuzz/vsdxfuzzer.cpp
+++ b/src/fuzz/vsdxfuzzer.cpp
@@ -12,14 +12,14 @@
#include <libvisio/libvisio.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;
libvisio::VisioDocument::parse(&input, &generator);
return 0;
}
More information about the Libreoffice-commits
mailing list