blob: 4baf3df357da2044a0c8c9e292bd5cb97e51419e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// Copyright (C) 2020 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QSslCertificate>
extern "C" int LLVMFuzzerTestOneInput(const char *Data, size_t Size) {
// to reduce noise and increase speed
static char quiet[] = "QT_LOGGING_RULES=qt.*=false";
static int pe = putenv(quiet);
Q_UNUSED(pe);
QSslCertificate ssl(QByteArray::fromRawData(Data, Size), QSsl::Pem);
return 0;
}
|