From f1d4c4009644a37f6d7c1981bc79b3bfb47188ac Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 24 Feb 2017 14:50:36 +0000 Subject: add 602 fuzzer Change-Id: I91242d4647922be1c668c6a6518dedf7048801be --- vcl/workben/602fuzzer.cxx | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 vcl/workben/602fuzzer.cxx (limited to 'vcl/workben/602fuzzer.cxx') diff --git a/vcl/workben/602fuzzer.cxx b/vcl/workben/602fuzzer.cxx new file mode 100644 index 000000000000..04c8726d9016 --- /dev/null +++ b/vcl/workben/602fuzzer.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 TestImport602(SvStream &rStream); + +extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) +{ + SvMemoryStream aStream(const_cast(data), size, StreamMode::READ); + (void)TestImport602(aStream); + return 0; +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit