Fuzzing: Discard logging output from QTextDocument
It's pointless in a fuzzer and slows down execution. Change-Id: I160d7fd761118f9eba9b98fc024aef293e021845 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>bb10
parent
33a2bd9ca9
commit
75cdbb85ea
|
|
@ -1,6 +1,6 @@
|
|||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2019 The Qt Company Ltd.
|
||||
** Copyright (C) 2021 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the test suite of the Qt Toolkit.
|
||||
|
|
@ -28,6 +28,11 @@
|
|||
|
||||
#include <QGuiApplication>
|
||||
#include <QTextDocument>
|
||||
#include <QtGlobal>
|
||||
|
||||
// silence warnings
|
||||
static QtMessageHandler mh = qInstallMessageHandler([](QtMsgType, const QMessageLogContext &,
|
||||
const QString &) {});
|
||||
|
||||
extern "C" int LLVMFuzzerTestOneInput(const char *Data, size_t Size) {
|
||||
static int argc = 3;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2019 The Qt Company Ltd.
|
||||
** Copyright (C) 2021 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the test suite of the Qt Toolkit.
|
||||
|
|
@ -28,6 +28,11 @@
|
|||
|
||||
#include <QGuiApplication>
|
||||
#include <QTextDocument>
|
||||
#include <QtGlobal>
|
||||
|
||||
// silence warnings
|
||||
static QtMessageHandler mh = qInstallMessageHandler([](QtMsgType, const QMessageLogContext &,
|
||||
const QString &) {});
|
||||
|
||||
extern "C" int LLVMFuzzerTestOneInput(const char *Data, size_t Size) {
|
||||
static int argc = 3;
|
||||
|
|
|
|||
Loading…
Reference in New Issue