summaryrefslogtreecommitdiffstats
path: root/tests/libfuzzer/corelib/serialization/qcborvalue/fromcbor/main.cpp
blob: 6301c21007679de870d72ff045012d453e27c1da (plain)
1
2
3
4
5
6
7
8
9
// Copyright (C) 2020 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#include <QCborValue>

extern "C" int LLVMFuzzerTestOneInput(const char *Data, size_t Size) {
    QCborValue::fromCbor(QByteArray::fromRawData(Data, Size));
    return 0;
}