Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 6714f054 authored by Nicolas Carion's avatar Nicolas Carion

fixes in fuzzing

parent 283865c0
......@@ -41,6 +41,7 @@
#include "effects/effectsrepository.hpp"
#include "effects/effectstack/model/effectitemmodel.hpp"
#include "effects/effectstack/model/effectstackmodel.hpp"
#include "mltconnection.h"
#include "project/projectmanager.h"
#include "timeline2/model/clipmodel.hpp"
#include "timeline2/model/compositionmodel.hpp"
......@@ -128,7 +129,6 @@ void fuzz(const std::string &input)
std::stringstream ss;
ss << input;
auto repo = Mlt::Factory::init(NULL);
Mlt::Profile profile;
auto binModel = pCore->projectItemModel();
binModel->clean();
......@@ -406,4 +406,7 @@ void fuzz(const std::string &input)
}
}
}
pCore->m_projectManager = nullptr;
Core::m_self.reset();
MltConnection::m_self.reset();
}
......@@ -24,10 +24,13 @@
#include <QApplication>
#include <cstring>
#include <iostream>
#include <mlt++/MltFactory.h>
#include <mlt++/MltRepository.h>
int argc = 1;
char *argv[1] = {"fuzz"};
QApplication app(argc, argv);
std::unique_ptr<Mlt::Repository> repo(Mlt::Factory::init(nullptr));
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment