Skip to content

Commit

Permalink
Honor keyword-alignment restrictions ##search
Browse files Browse the repository at this point in the history
  • Loading branch information
radare authored and trufae committed Nov 27, 2024
1 parent 1bb5b45 commit 95cdbf5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libr/search/search.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ R_IPI int r_search_hit_sz(RSearch *s, RSearchKeyword *kw, ut64 addr, ut32 sz) {
R_LOG_DEBUG ("0x%08"PFMT64x" unaligned", addr);
return 1;
}
if (kw->align && (addr % kw->align)) {
R_LOG_DEBUG ("0x%08"PFMT64x" unaligned", addr);
return 1;
}
if (!s->contiguous) {
if (kw->last && addr == kw->last) {
kw->count--;
Expand Down

0 comments on commit 95cdbf5

Please sign in to comment.