[Libreoffice-commits] libmspub.git: src/fuzz
David Tardon
dtardon at redhat.com
Thu Sep 28 18:48:58 UTC 2017
src/fuzz/pubfuzzer.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 9eaae9f46390d65726517a8f13f6952e8d696ecd
Author: David Tardon <dtardon at redhat.com>
Date: Thu Sep 28 20:48:20 2017 +0200
avoid output from fuzzer
Change-Id: Ifb5ca5822c031f6613a07bcd27ea6bf21841ca90
diff --git a/src/fuzz/pubfuzzer.cpp b/src/fuzz/pubfuzzer.cpp
index 17ad8ec..8cec378 100644
--- a/src/fuzz/pubfuzzer.cpp
+++ b/src/fuzz/pubfuzzer.cpp
@@ -12,14 +12,14 @@
#include <libmspub/libmspub.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;
libmspub::MSPUBDocument::parse(&input, &generator);
return 0;
}
More information about the Libreoffice-commits
mailing list