From f5bfdb06e3a14e0a754d09690a323a6f8ba3f0fa Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 2 Mar 2017 14:41:46 +0000 Subject: add ppt fuzzer Change-Id: I283d24fc2d7420273c3769fcd4ea3938da85afb4 --- vcl/workben/pptfuzzer.cxx | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 vcl/workben/pptfuzzer.cxx (limited to 'vcl/workben/pptfuzzer.cxx') diff --git a/vcl/workben/pptfuzzer.cxx b/vcl/workben/pptfuzzer.cxx new file mode 100644 index 000000000000..8c9345339fbf --- /dev/null +++ b/vcl/workben/pptfuzzer.cxx @@ -0,0 +1,23 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice 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 +#include +#include "commonfuzzer.hxx" + +extern "C" bool TestImportPPT(SvStream &rStream); + +extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) +{ + SvMemoryStream aStream(const_cast(data), size, StreamMode::READ); + (void)TestImportPPT(aStream); + return 0; +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit