|
Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
|
Fuzzes QVariant/JSON conversion and object-spec lookup. More...
#include <sonde/objecttree.h>#include <QtCore/QCoreApplication>#include <QtCore/QDateTime>#include <QtCore/QJsonDocument>#include <QtCore/QPoint>#include <QtCore/QRect>#include <QtCore/QSize>#include <QtCore/QUrl>#include <array>#include <cstdint>Classes | |
| struct | anonymous_namespace{fuzz_json_variant.cpp}::Fixture |
| The application and a small object tree to search. More... | |
Functions | |
| Fixture & | anonymous_namespace{fuzz_json_variant.cpp}::fixture () |
| The fixture, created on first use. | |
| const std::array< QMetaType, 20 > & | anonymous_namespace{fuzz_json_variant.cpp}::types () |
| The types inputs are converted to. | |
| int | LLVMFuzzerTestOneInput (const uint8_t *data, size_t size) |
| libFuzzer entry point. | |
Fuzzes QVariant/JSON conversion and object-spec lookup.
The first byte picks a target type; the rest is JSON converted to that type with jsonToVariant() and back with variantToJson(). The same bytes are also used as an object spec for ObjectTree::find().