baptistecrepin added the comment:
Thank you, I didn't know that ctypes wasn't prototyped.
I only use VirtualAlloc in combination with RtlMoveMemory and CreateThread in
order to execute shellcodes for research purposes.
--
___
Pyth
New submission from baptistecrepin :
The ctypes.windll.kernel32.VirtuAlloc function return by default a
ctypes.c_long but on 64bits systems memory addresses can be higher so it should
be a ctypes.c_uint64 or ctypes.c_void_p.
--
___
Python tracker
Change by baptistecrepin :
--
components: Windows
nosy: baptistecrepin, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Virtualalloc wrong return type
type: behavior
versions: Python 3.9