Flag: Tornado! Hurricane!

 Forums >>  IDA Pro  >>  Convert local variable to array in IDA Python

Topic created on: June 1, 2012 17:36 CDT by cr0w .

Does anyone know if IDAPython API (or IDC) allows us to convert a local byte variable to a byte array?  I cannot seem to find any API calls that will do it.  For example, say we have var_1, which is a byte.  I want to make it a byte array of size 6.  In IDA, we simply right click and adjust the size in the stack frame.

So far in script, I can get the variable and offset, and I can get the current size as well, using GetFrame, GetMemberOffset, and GetMemberSize.  If I have already converted one to an array, GetMemberSize returns the correct size.  However, there is no SetMemberSize function.

A few ways I've tried:

MakeArray - nothing seems to happen, and I'm not even sure where this would make it.  You pass it ea, or the linear offset.  This wouldn't apply to a functions stack frame.

SetMemberType - tried this thinking I could just set the type with nitems = 6, but with no luck.

Suggestions?

No posts found under this topic.
Note: Registration is required to post to the forums.

There are 29,952 total registered users.


Recently Created Topics
pydbg bp_set_mem
Jun/18
Disassembling Motoro...
Jun/13
ida plugin writing f...
Jun/02
New version of RE-Go...
May/29
Decompiling raw bina...
May/22
Incorrect bitness wh...
May/20
PaiMei stalker modul...
May/19
Attach to program us...
May/13
IDA PRO how to make ...
May/12
FACT: OpenRCE is dead.
May/08


Recent Forum Posts
pydbg bp_set_mem
kitochou
pydbg, memory breakp...
kitochou
Good Binary Code Pro...
alton
Int 3 anti debug?
SteveIRQL
Attach to program us...
SteveIRQL
Ollydbg 2.0 - Plugin...
openrce...
IDA PRO how to make ...
codeinject
FACT: OpenRCE is dead.
codeinject
IDA Resource Viewer ...
r2x64
FACT: OpenRCE is dead.
djnemo


Recent Blog Entries
kitochou
Jun/18
pydbg

lowpriority
Apr/13
OllyMigrate Plugin for Olly...

everdox
Mar/08
2 anti-trace mechanisms spe...

everdox
Mar/07
Advanced debugging techniques

everdox
Mar/06
Branch tracing and LBR acce...

More ...


Recent Blog Comments
newlulu on:
Jun/10
Branch tracing and LBR acce...

newlulu on:
Jun/10
Advanced debugging techniques

newlulu on:
Jun/10
2 anti-trace mechanisms spe...

newlulu on:
Jun/10
OllyMigrate Plugin for Olly...

clarisonic on:
Apr/03
New version of Ollydbg!

More ...


Imagery
SoySauce Blueprint
Jun 6, 2008

[+] expand

View Gallery (11) / Submit