jevey / idapython

Automatically exported from code.google.com/p/idapython
Other
1 stars 0 forks source link

FindBinary() with SEARCH_UP doesn't work? #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use a database on something common like notepad.exe
2. Select an address and pick out some bytes up above to search for
  (I picked "8b 0d b4 9a").
3. Try an IDC and an IDApython FindBinary() and compare results

What is the expected output? What do you see instead?

IDC version:

  auto f;
  f = FindBinary(ScreenEA(), SEARCH_UP, "8b 0d b4 9a");
  Message("f: %#x\n", f);

Output:
  f: 0x1007434

Python version:

  f = FindBinary(ScreenEA(), SEARCH_UP, "8b 0d b4 9a")
  print "f: %#x"% f

Output:
  f: 0xffffffff

What version of the product are you using? On what operating system?
0.9.56_ida5.1_py2.5, ida 5.2

Please provide any additional information below.

Original issue reported on code.google.com by jm.wk...@gmail.com on 18 Apr 2008 at 7:00

GoogleCodeExporter commented 9 years ago
Bug fixed. The fix will be included in the next build and also in the latest 
version of idc.py in SVN.

This took way too long, sorry about that.

Original comment by gergely.erdelyi on 15 Jun 2008 at 4:25