Skip to content

Commit

Permalink
Merge pull request #128 from mandiant/fix/127
Browse files Browse the repository at this point in the history
ironstrings: increase stack size
  • Loading branch information
mr-tz authored Mar 1, 2024
2 parents f65fae6 + b666ca5 commit 011cb33
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/flare/ironstrings/ironstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@
def main():
eh = flare_emu.EmuHelper()

# hacky way to increase stack size (default is 0x2000 and it's really only half, because the stack pointer begins
# in the middle of the allocated stack size); for functions with larger stacks this caused issues, see e.g.,
# https://github.com/mandiant/flare-ida/issues/127
eh.stackSize = 0x8000
eh.resetEmulatorHeapAndStack()

# dictionary that stores data used across emulation runs, function emulation specific data is set below
userData = {
# found stackstrings in stack memory
Expand Down

0 comments on commit 011cb33

Please sign in to comment.