Skip to content

Commit

Permalink
Fix: Add global address offset to hit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Feb 4, 2025
1 parent 0c7395d commit 28ef649
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion librz/search/string_search.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ static bool string_find(RZ_NULLABLE RzSearchFindOpt *fopt, void *user, ut64 offs
ut64 str_mem_offset;
align_offsets(options, detected->type, detected, group0, &str_mem_offset, &str_mem_len, found_idx << 32);
char *hit_type = rz_str_newf("string.%s", rz_str_enc_as_string(detected->type));
RzSearchHit *hit = rz_search_hit_new(hit_type, str_mem_offset, str_mem_len);
RzSearchHit *hit = rz_search_hit_new(hit_type, str_mem_offset + offset, str_mem_len);
free(hit_type);
if (!hit || !rz_th_queue_push(hits, hit, true)) {
rz_search_hit_free(hit);
Expand Down

0 comments on commit 28ef649

Please sign in to comment.