mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-19 12:22:43 +00:00
String search optimization
This commit is contained in:
parent
c09208909f
commit
898a00d1d4
@ -1347,7 +1347,10 @@ R_API int r_bin_is_string(RBin *bin, ut64 va) {
|
||||
RList *list;
|
||||
if ((list = r_bin_get_strings (bin)) == NULL) return false;
|
||||
r_list_foreach (list, iter, string) {
|
||||
if (string->vaddr == va) return true;
|
||||
if (string->vaddr == va)
|
||||
return true;
|
||||
else if (string->vaddr > va)
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user