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

David Tardon dtardon at redhat.com
Tue Mar 14 12:39:28 UTC 2017


 src/fuzz/.gitignore    |    2 +-
 src/fuzz/Makefile.am   |    8 ++++----
 src/fuzz/pubfuzz.cpp   |   27 ---------------------------
 src/fuzz/pubfuzzer.cpp |   27 +++++++++++++++++++++++++++
 4 files changed, 32 insertions(+), 32 deletions(-)

New commits:
commit e62697efe1efbb34f216be7929eabf77feb17f0f
Author: David Tardon <dtardon at redhat.com>
Date:   Tue Mar 14 13:30:44 2017 +0100

    rename
    
    Change-Id: I5bfd248db6e93a8c7d3f1a23b21b38919623e1c3

diff --git a/src/fuzz/.gitignore b/src/fuzz/.gitignore
index f44c6ed..1ffee5e 100644
--- a/src/fuzz/.gitignore
+++ b/src/fuzz/.gitignore
@@ -5,4 +5,4 @@
 *.o
 Makefile
 Makefile.in
-pubfuzz
+pubfuzzer
diff --git a/src/fuzz/Makefile.am b/src/fuzz/Makefile.am
index 61b3902..7da4f18 100644
--- a/src/fuzz/Makefile.am
+++ b/src/fuzz/Makefile.am
@@ -1,4 +1,4 @@
-bin_PROGRAMS = pubfuzz
+bin_PROGRAMS = pubfuzzer
 
 AM_CXXFLAGS = -I$(top_srcdir)/inc \
 	$(REVENGE_GENERATORS_CFLAGS) \
@@ -6,12 +6,12 @@ AM_CXXFLAGS = -I$(top_srcdir)/inc \
 	$(REVENGE_STREAM_LIBS) \
 	$(DEBUG_CXXFLAGS)
 
-pubfuzz_LDADD = \
+pubfuzzer_LDADD = \
 	$(top_builddir)/src/lib/libmspub- at MSPUB_MAJOR_VERSION@. at MSPUB_MINOR_VERSION@.la \
 	$(REVENGE_GENERATORS_LIBS) \
 	$(REVENGE_LIBS) \
 	$(REVENGE_STREAM_LIBS) \
 	-lFuzzingEngine
 
-pubfuzz_SOURCES = \
-	pubfuzz.cpp
+pubfuzzer_SOURCES = \
+	pubfuzzer.cpp
diff --git a/src/fuzz/pubfuzz.cpp b/src/fuzz/pubfuzz.cpp
deleted file mode 100644
index 7a9ab5f..0000000
--- a/src/fuzz/pubfuzz.cpp
+++ /dev/null
@@ -1,27 +0,0 @@
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/*
- * This file is part of the libmspub project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- */
-
-#include <algorithm>
-#include <cstdint>
-
-#include <libmspub/libmspub.h>
-
-#include <librevenge-generators/librevenge-generators.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);
-    libmspub::MSPUBDocument::parse(&input, &generator);
-    return 0;
-}
-
-/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
diff --git a/src/fuzz/pubfuzzer.cpp b/src/fuzz/pubfuzzer.cpp
new file mode 100644
index 0000000..7a9ab5f
--- /dev/null
+++ b/src/fuzz/pubfuzzer.cpp
@@ -0,0 +1,27 @@
+/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/*
+ * This file is part of the libmspub project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#include <algorithm>
+#include <cstdint>
+
+#include <libmspub/libmspub.h>
+
+#include <librevenge-generators/librevenge-generators.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);
+    libmspub::MSPUBDocument::parse(&input, &generator);
+    return 0;
+}
+
+/* vim:set shiftwidth=2 softtabstop=2 expandtab: */


More information about the Libreoffice-commits mailing list