Skip to content

Commit

Permalink
Merge pull request #229 from cecio/master
Browse files Browse the repository at this point in the history
Allocate SizeOfStackReserve instead of fixed value in 'load_module'
  • Loading branch information
williballenthin authored Mar 1, 2023
2 parents 6e2c805 + 193f3e5 commit 08ac824
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion speakeasy/windows/win32.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def load_module(self, path=None, data=None, first_time_setup=True):
self.setup(first_time_setup=first_time_setup)

if not self.stack_base:
self.stack_base, stack_addr = self.alloc_stack(0x12000)
self.stack_base, stack_addr = self.alloc_stack(pe.OPTIONAL_HEADER.SizeOfStackReserve or 0x12000)
self.set_func_args(self.stack_base, self.return_hook)

# Init imported data
Expand Down

0 comments on commit 08ac824

Please sign in to comment.