Closed HongThatCong closed 1 year ago
I fixed in winenv\api\api.py
And in winenv\api\usermode\ntdll.py
Dear mentors, may I work on this issue and is there any test examples you have that essentially trigger the aforementioned issue ?
go ahead and work on the issue.
i don't have any examples offhand. @HongThatCong do you?
To @williballenthin, @Lophiel: sample: "ce1cdb8895c7fbda1dc1d3e8a027d0b4310e956acffa75326281670f8e2b6226"
LdrLoadDll and LdrGetProcedureAddress in winenv\api\usermode\ntdll.py will failed when the unicode string and ansi string which not NULL terminated. UNICODE_STRING and ANSI_STRING don't enforce to have NULL char at end. The len of them is the field Length in UNICODE_STRING and ANSI_STRING.