summaryrefslogtreecommitdiffstats
path: root/tests/libfuzzer/corelib/serialization/qcborstreamreader/next/main.cpp
blob: 19001628b20b4b646d3aa6aaff2557cf496e84ed (plain)
1
2
3
4
5
6
7
8
9
10
11
// Copyright (C) 2020 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#include <QCborStreamReader>

extern "C" int LLVMFuzzerTestOneInput(const char *Data, size_t Size) {
    QCborStreamReader reader(QByteArray::fromRawData(Data, Size));
    while (reader.isValid())
        reader.next(1024);
    return 0;
}