From a2206b74aedb14f8938ccad2c26d0c22cfe91963 Mon Sep 17 00:00:00 2001 From: Robert Loehning Date: Thu, 30 Jan 2020 11:05:01 +0100 Subject: Fuzzing: Follow style of having lower case names Change-Id: If33d9cf67fa13aa6a813b1f545c19dabe2fbb59d Reviewed-by: Shawn Rutledge Reviewed-by: Edward Welbourne --- .../gui/text/qtextdocument/setHtml/main.cpp | 37 ---------------------- .../gui/text/qtextdocument/setHtml/setHtml.pro | 8 ----- .../gui/text/qtextdocument/setMarkdown/main.cpp | 34 -------------------- .../text/qtextdocument/setMarkdown/setMarkdown.pro | 9 ------ .../gui/text/qtextdocument/sethtml/main.cpp | 37 ++++++++++++++++++++++ .../gui/text/qtextdocument/sethtml/sethtml.pro | 8 +++++ .../gui/text/qtextdocument/setmarkdown/main.cpp | 34 ++++++++++++++++++++ .../text/qtextdocument/setmarkdown/setmarkdown.pro | 9 ++++++ 8 files changed, 88 insertions(+), 88 deletions(-) delete mode 100644 tests/libfuzzer/gui/text/qtextdocument/setHtml/main.cpp delete mode 100644 tests/libfuzzer/gui/text/qtextdocument/setHtml/setHtml.pro delete mode 100644 tests/libfuzzer/gui/text/qtextdocument/setMarkdown/main.cpp delete mode 100644 tests/libfuzzer/gui/text/qtextdocument/setMarkdown/setMarkdown.pro create mode 100644 tests/libfuzzer/gui/text/qtextdocument/sethtml/main.cpp create mode 100644 tests/libfuzzer/gui/text/qtextdocument/sethtml/sethtml.pro create mode 100644 tests/libfuzzer/gui/text/qtextdocument/setmarkdown/main.cpp create mode 100644 tests/libfuzzer/gui/text/qtextdocument/setmarkdown/setmarkdown.pro (limited to 'tests/libfuzzer/gui/text/qtextdocument') diff --git a/tests/libfuzzer/gui/text/qtextdocument/setHtml/main.cpp b/tests/libfuzzer/gui/text/qtextdocument/setHtml/main.cpp deleted file mode 100644 index 51fa3c9e0f..0000000000 --- a/tests/libfuzzer/gui/text/qtextdocument/setHtml/main.cpp +++ /dev/null @@ -1,37 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2019 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:GPL-EXCEPT$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3 as published by the Free Software -** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include -#include - -extern "C" int LLVMFuzzerTestOneInput(const char *Data, size_t Size) { - static int c = 0; - static QApplication a(c, nullptr); - QTextDocument().setHtml(QByteArray::fromRawData(Data, Size)); - return 0; -} diff --git a/tests/libfuzzer/gui/text/qtextdocument/setHtml/setHtml.pro b/tests/libfuzzer/gui/text/qtextdocument/setHtml/setHtml.pro deleted file mode 100644 index af5ef9e940..0000000000 --- a/tests/libfuzzer/gui/text/qtextdocument/setHtml/setHtml.pro +++ /dev/null @@ -1,8 +0,0 @@ -QT += widgets -SOURCES += main.cpp -FUZZ_ENGINE = $$(LIB_FUZZING_ENGINE) -isEmpty(FUZZ_ENGINE) { - QMAKE_LFLAGS += -fsanitize=fuzzer -} else { - LIBS += $$FUZZ_ENGINE -} diff --git a/tests/libfuzzer/gui/text/qtextdocument/setMarkdown/main.cpp b/tests/libfuzzer/gui/text/qtextdocument/setMarkdown/main.cpp deleted file mode 100644 index 66ddf738f2..0000000000 --- a/tests/libfuzzer/gui/text/qtextdocument/setMarkdown/main.cpp +++ /dev/null @@ -1,34 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2019 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:GPL-EXCEPT$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3 as published by the Free Software -** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -extern "C" int LLVMFuzzerTestOneInput(const char *Data, size_t Size) { - QTextDocument().setMarkdown(QByteArray::fromRawData(Data, Size)); - return 0; -} diff --git a/tests/libfuzzer/gui/text/qtextdocument/setMarkdown/setMarkdown.pro b/tests/libfuzzer/gui/text/qtextdocument/setMarkdown/setMarkdown.pro deleted file mode 100644 index 758622e1af..0000000000 --- a/tests/libfuzzer/gui/text/qtextdocument/setMarkdown/setMarkdown.pro +++ /dev/null @@ -1,9 +0,0 @@ -CONFIG += console -CONFIG -= app_bundle -SOURCES += main.cpp -FUZZ_ENGINE = $$(LIB_FUZZING_ENGINE) -isEmpty(FUZZ_ENGINE) { - QMAKE_LFLAGS += -fsanitize=fuzzer -} else { - LIBS += $$FUZZ_ENGINE -} diff --git a/tests/libfuzzer/gui/text/qtextdocument/sethtml/main.cpp b/tests/libfuzzer/gui/text/qtextdocument/sethtml/main.cpp new file mode 100644 index 0000000000..51fa3c9e0f --- /dev/null +++ b/tests/libfuzzer/gui/text/qtextdocument/sethtml/main.cpp @@ -0,0 +1,37 @@ +/**************************************************************************** +** +** Copyright (C) 2019 The Qt Company Ltd. +** Contact: https://www.qt.io/licensing/ +** +** This file is part of the test suite of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:GPL-EXCEPT$ +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and The Qt Company. For licensing terms +** and conditions see https://www.qt.io/terms-conditions. For further +** information use the contact form at https://www.qt.io/contact-us. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU +** General Public License version 3 as published by the Free Software +** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT +** included in the packaging of this file. Please review the following +** information to ensure the GNU General Public License requirements will +** be met: https://www.gnu.org/licenses/gpl-3.0.html. +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include +#include + +extern "C" int LLVMFuzzerTestOneInput(const char *Data, size_t Size) { + static int c = 0; + static QApplication a(c, nullptr); + QTextDocument().setHtml(QByteArray::fromRawData(Data, Size)); + return 0; +} diff --git a/tests/libfuzzer/gui/text/qtextdocument/sethtml/sethtml.pro b/tests/libfuzzer/gui/text/qtextdocument/sethtml/sethtml.pro new file mode 100644 index 0000000000..af5ef9e940 --- /dev/null +++ b/tests/libfuzzer/gui/text/qtextdocument/sethtml/sethtml.pro @@ -0,0 +1,8 @@ +QT += widgets +SOURCES += main.cpp +FUZZ_ENGINE = $$(LIB_FUZZING_ENGINE) +isEmpty(FUZZ_ENGINE) { + QMAKE_LFLAGS += -fsanitize=fuzzer +} else { + LIBS += $$FUZZ_ENGINE +} diff --git a/tests/libfuzzer/gui/text/qtextdocument/setmarkdown/main.cpp b/tests/libfuzzer/gui/text/qtextdocument/setmarkdown/main.cpp new file mode 100644 index 0000000000..66ddf738f2 --- /dev/null +++ b/tests/libfuzzer/gui/text/qtextdocument/setmarkdown/main.cpp @@ -0,0 +1,34 @@ +/**************************************************************************** +** +** Copyright (C) 2019 The Qt Company Ltd. +** Contact: https://www.qt.io/licensing/ +** +** This file is part of the test suite of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:GPL-EXCEPT$ +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and The Qt Company. For licensing terms +** and conditions see https://www.qt.io/terms-conditions. For further +** information use the contact form at https://www.qt.io/contact-us. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU +** General Public License version 3 as published by the Free Software +** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT +** included in the packaging of this file. Please review the following +** information to ensure the GNU General Public License requirements will +** be met: https://www.gnu.org/licenses/gpl-3.0.html. +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include + +extern "C" int LLVMFuzzerTestOneInput(const char *Data, size_t Size) { + QTextDocument().setMarkdown(QByteArray::fromRawData(Data, Size)); + return 0; +} diff --git a/tests/libfuzzer/gui/text/qtextdocument/setmarkdown/setmarkdown.pro b/tests/libfuzzer/gui/text/qtextdocument/setmarkdown/setmarkdown.pro new file mode 100644 index 0000000000..758622e1af --- /dev/null +++ b/tests/libfuzzer/gui/text/qtextdocument/setmarkdown/setmarkdown.pro @@ -0,0 +1,9 @@ +CONFIG += console +CONFIG -= app_bundle +SOURCES += main.cpp +FUZZ_ENGINE = $$(LIB_FUZZING_ENGINE) +isEmpty(FUZZ_ENGINE) { + QMAKE_LFLAGS += -fsanitize=fuzzer +} else { + LIBS += $$FUZZ_ENGINE +} -- cgit v1.2.3