binaryninja-api icon indicating copy to clipboard operation
binaryninja-api copied to clipboard

Search returns 0 results unless searching within the specific function for large binary

Open CalebFenton opened this issue 5 months ago • 2 comments

Version and Platform (required):

  • Binary Ninja Version: 5.0.7486
  • Edition: Commercial / Ultimate
  • OS: Ubuntu Linux
  • OS Version: 22.04
  • CPU Architecture: x64 or M1

Bug Description:

Searching doesn't work, perhaps over large ranges. In the bndb linked below, I'm searching for __pcmpeqb_xmmdq_memdq in sub_2899e20 using Text with the Search range: All it fails with 0 results. If I do the exact same search but with the Search range: Current function it finds everything just fine. If I switch the search range to Custom range but keep the current function range, I get 0 results.

Steps To Reproduce:

  1. Download and decompress the bndb
  2. Go to function sub_2899e20
  3. Observe __pcmpeqb_xmmdq_memdq is in the function text
  4. Search for __pcmpeqb_xmmdq_memdq (or anything) globally.

Expected Behavior: Search results appear, slowly, because it has to scan over a gazillion files.

Screenshots/Video Recording: N/A

Binary: If applicable, please provide us with the binary to help us work with the issue faster. Here are a few options:

Original binary: gentle cloud runs easily (obsidian for linux) BNDB: https://drive.google.com/file/d/16JJT4DBIn9g5jic5eevaqaVnQqxX6QCG/view?usp=sharing It's on google because every time I uploaded to y'all, the upload would fail and the site would return 502 for a while and then 503. 🤷

Additional Information: I don't seem to have this problem for smaller binaries.

CalebFenton avatar Jun 12 '25 14:06 CalebFenton

Image Image

If I use a custom range for just that function it does appear to be working for me, is that not what you're seeing?

psifertex avatar Jun 13 '25 17:06 psifertex

This might be caused by https://github.com/Vector35/binaryninja-api/issues/6144, but I am not sure. @CalebFenton did you search in HLIL or disassembly, or other ILs?

xusheng6 avatar Jun 17 '25 04:06 xusheng6

I also cannot reproduce this

xusheng6 avatar Aug 15 '25 20:08 xusheng6