1
0
mirror of synced 2024-11-28 09:30:51 +01:00

fix: Yara information task not being interruptable

This commit is contained in:
WerWolv 2024-02-25 00:09:06 +01:00
parent 752a2d2e8d
commit d51b065723

View File

@ -34,6 +34,10 @@ namespace hex::plugin::yara {
const std::string fileContent = romfs::get(ruleFilePath).data<const char>();
YaraRule yaraRule(fileContent);
task.setInterruptCallback([&yaraRule] {
yaraRule.interrupt();
});
const auto result = yaraRule.match(provider, region);
if (result.has_value()) {
const auto &rules = result.value().matchedRules;