Skip to content

Commit

Permalink
[Dropper] # fix next offset computation for Dropper #182 #181
Browse files Browse the repository at this point in the history
Signed-off-by: Gheorghita Mutu <gheorghitamutu@gmail.com>
  • Loading branch information
gheorghitamutu committed Apr 28, 2024
1 parent 2940e40 commit 1a99f4e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion GenericPlugins/Dropper/include/Dropper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,14 +286,17 @@ class Instance
const auto name = dropper->GetName();
occurences[name] += 1;
findings.push_back({ start, end, result, name });
nextOffset = end + 1;
nextOffset = end;

// adjust for zones
if (result == Result::Unicode) {
end -= 2;
} else if (result == Result::Ascii) {
end -= 1;
}
else {
end += 1;
}
zones.Add(start, end, OBJECT_CATEGORY_COLOR_MAP.at(dropper->GetGroup()), dropper->GetName());

break;
Expand Down

0 comments on commit 1a99f4e

Please sign in to comment.