Skip to content

Conversation

@alexlee820
Copy link

@alexlee820 alexlee820 commented Dec 2, 2025

A array index flowoccur in win11 , added a if statement to prevent array index overflow occur

Fix the null pointer error in windows 11
Fix win11 null pointer bug
@alexlee820
Copy link
Author

alexlee820 commented Dec 3, 2025

Here is the detail of the error occur in windows11.
After tracing the crash stack and conducting some debugging in Visual Studio, I found that the issue actually occurs during the PEB walk. Due to some changes in Windows, the buffer length for BaseDllName is not zero even when the buffer of BaseDllName is NULL. As a result, when a DLL hasn’t been loaded into memory and the PEB walk reaches the end where BaseDllName is null, there can be an array index overflow in the utf16_to_utf8 function.
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant