From b666ca54af6f2c99f77e5b5fc9a649ffc2162943 Mon Sep 17 00:00:00 2001 From: Moritz Date: Tue, 6 Feb 2024 20:06:52 +0100 Subject: [PATCH] Increase stack size --- python/flare/ironstrings/ironstrings.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/python/flare/ironstrings/ironstrings.py b/python/flare/ironstrings/ironstrings.py index c608b79..a886bfd 100755 --- a/python/flare/ironstrings/ironstrings.py +++ b/python/flare/ironstrings/ironstrings.py @@ -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