fix: Yara information task not being interruptable
This commit is contained in:
parent
752a2d2e8d
commit
d51b065723
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user