You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an issue iv'e encountered in at least one location in the win32 api.
In kernel32.py line 3857:
using max(MAX_PATH, len(lpCommandLine)) will create a string without a null terminator
this creates invalid command lines since the command line will contain heap garbage appended to it
using max(MAX_PATH, len(lpCommandLine+1)) should fix the issue here.
the same happenes in lines 3900 (using +2 should fix the issue here, i think)
The text was updated successfully, but these errors were encountered:
There is an issue iv'e encountered in at least one location in the win32 api.
In kernel32.py line 3857:
using max(MAX_PATH, len(lpCommandLine)) will create a string without a null terminator
this creates invalid command lines since the command line will contain heap garbage appended to it
using max(MAX_PATH, len(lpCommandLine+1)) should fix the issue here.
the same happenes in lines 3900 (using +2 should fix the issue here, i think)
The text was updated successfully, but these errors were encountered: