xzlwbl / idapython

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

GetLocalType truncated to 1024 chars #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. In IDA Create a "Local Type" that is really bigger than 1024 chars (e.g. by 
importing a 
.h file) - Ctrl-F9
2. Write a python script that calls GetLocalType(n, PRTYPE_MULTI|PRTYPE_TYPE)
3. Observer that it is truncated.

MAXSTR is 1024. But I have plenty of huge structures.

Original issue reported on code.google.com by jamiebri...@gmail.com on 18 Apr 2009 at 1:01

GoogleCodeExporter commented 9 years ago
I'm using IDA 5.4 and whatever version of idapython that comes with.

Original comment by jamiebri...@gmail.com on 18 Apr 2009 at 1:02

GoogleCodeExporter commented 9 years ago
The limit for return strings on GetLocalType is now 64KiB. If you need larger 
buffers you can use
idaapi.idc_get_local_type() directly.

Please try it and let me know if it does not work.

Original comment by gergely.erdelyi on 27 Apr 2009 at 5:39

GoogleCodeExporter commented 9 years ago
It works. Thanks very much!

Original comment by jamiebri...@gmail.com on 27 Apr 2009 at 7:37