mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 21:05:56 -05:00
fix: Yara information task not being interruptable
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user