Skip to content

Commit

Permalink
scale indexes added to addresses in canal output properly
Browse files Browse the repository at this point in the history
  • Loading branch information
peadar committed May 8, 2024
1 parent 9e93ce0 commit 54e1e00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion canal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ template <typename Matcher, typename Word> inline void search(
Word p = *cur;
for (const auto &range : searchaddrs )
if (p >= range.first && p < range.second)
cout << "0x" << hex << loc + (cur - start) << dec << "\n";
cout << "0x" << hex << loc + (cur - start) * sizeof( Word) << dec << "\n";
}
} else {
for (auto cur = start; cur != r.end(); ++cur) {
Expand Down

0 comments on commit 54e1e00

Please sign in to comment.