Comments (5)
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.
Yeah the binary is not an option, sorry.
I'm at home now, I share with you the trace tomorrow.
Thanks
from flare-ida.
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.
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.
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)
- shellcode-hashes - create enum of resolved values HOT 9
- MSDN_Crawler issue HOT 13
- idb2pat.py issue on IDA 7.5 HOT 1
- idb2pat sigmake FATAL: Bad xdigit: error HOT 3
- 0 functions applied in IDA from .sig file HOT 10
- 'itertools.count' object has no attribute 'next' HOT 2
- shellcode hashes operand size issue
- Rename Conti hashing algorithm to MurmurHash2 HOT 1
- An error occurred while using argtacker HOT 1
- objc2_xrefs_helper.py MemoryError
- Several errors of objc2_analyzer.py HOT 1
- idb2pat: RIP-relative addressing not handled correctly
- ironstrings alloca_probe stack size calculation errors HOT 2
- Python 3 support HOT 5
- Possible problem with 64 bit code (find_ref_loc fucntion)?
- No table with addresses is getting printed in ironstring, and so many "DEBUG:root..." in the output
- objc2_analyzer.py cannot work for IDA 7.5
- shellcode_hash_search.py has some logic errors HOT 1
- sc_hashes.db: add process name database + filename database
- idb2pat fix bugs HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flare-ida.