Coder Social home page Coder Social logo

Comments (5)

williballenthin avatar williballenthin commented on May 25, 2024

is there any other stack trace information visible that you can share with me? that will help me find the function with the overflow, and hopefully get it working for you.

if there's any chance you can share the binary then that would certainly help, but i understand it may be sensitive. so if you cannot, we can continue to discuss and traige the bug here.

from flare-ida.

dummys avatar dummys commented on May 25, 2024

Yeah the binary is not an option, sorry.
I'm at home now, I share with you the trace tomorrow.
Thanks

from flare-ida.

dummys avatar dummys commented on May 25, 2024

INFO:idb2pat:make_func_sigs:[ 0 / 9215 ] _start 0x80001000L
ERROR:idb2pat:make_func_sigs:Python int too large to convert to C long
Traceback (most recent call last):
File "G:/tools/hexrays/ida/ida_plugins_scripts/flare_repo/python/flare/idb2pat.py", line 360, in make_func_sigs
sigs.append(make_func_sig(config, f))
File "G:/tools/hexrays/ida/ida_plugins_scripts/flare_repo/python/flare/idb2pat.py", line 193, in make_func_sig
ref_loc = find_ref_loc(config, ea, ref)
File "G:/tools/hexrays/ida/ida_plugins_scripts/flare_repo/python/flare/idb2pat.py", line 143, in find_ref_loc
for i in xrange(ea, get_item_end(ea) - config.pointer_size):
OverflowError: Python int too large to convert to C long
ERROR:idb2pat:make_func_sigs:Failed to create signature for function at 0x80001000L (_start)
INFO:idb2pat:make_func_sigs:[ 1 / 9215 ] _invalidate_cache 0x8000129cL
ERROR:idb2pat:make_func_sigs:Python int too large to convert to C long

And there is ton like this.

from flare-ida.

williballenthin avatar williballenthin commented on May 25, 2024

thanks for the traceback --- that leads me to believe the issue is in the xrange function, which has an odd limitation of having the platform's MAXINT as the upper bound.

would you try the script found here: https://raw.githubusercontent.com/williballenthin/flare-ida/c5259ffc2abaf9e757d0d53352ee2d3b99c5b60e/python/flare/idb2pat.py

this replaces calls to xrange with zrange, a function that shouldn't have the limitation.

from flare-ida.

dummys avatar dummys commented on May 25, 2024

Seems good for this issue, but another happend.
PS: I tested your script on another binary, elf and got the same issue for the index out of range.
EDIT: Issue solved by my commit for elf binary. Cannot test the mips one until monday, but I think the PR's will solve the issue on mips too.
EDIT: Found another problem with IDA 6.6 with Macho 32/64 binary, there is a infinite loop on line 163: if get_long(i) == ref:

from flare-ida.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.