diff options
author | Robert Loehning <robert.loehning@qt.io> | 2020-01-30 11:05:01 +0100 |
---|---|---|
committer | Robert Loehning <robert.loehning@qt.io> | 2020-02-13 22:24:03 +0100 |
commit | a2206b74aedb14f8938ccad2c26d0c22cfe91963 (patch) | |
tree | 57c9ac738c8706adecb7cf748ee4734547fde3b0 /tests/libfuzzer/gui/text/qtextdocument/setHtml | |
parent | 92eea633491ce8138c5caceb904ad26c1eb91044 (diff) |
Fuzzing: Follow style of having lower case names
Change-Id: If33d9cf67fa13aa6a813b1f545c19dabe2fbb59d
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'tests/libfuzzer/gui/text/qtextdocument/setHtml')
-rw-r--r-- | tests/libfuzzer/gui/text/qtextdocument/setHtml/main.cpp | 37 | ||||
-rw-r--r-- | tests/libfuzzer/gui/text/qtextdocument/setHtml/setHtml.pro | 8 |
2 files changed, 0 insertions, 45 deletions
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 <QApplication> -#include <QTextDocument> - -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 -} |