Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix OOB read bug and change code style in NRSSR sanitizer #128

Merged
merged 4 commits into from
Mar 21, 2022

Conversation

tremwil
Copy link
Contributor

@tremwil tremwil commented Mar 20, 2022

Fix a bug where the maximum size to wcsnlen_s was passed in bytes instead of wchar_t.

I don't know how this one slipped past when I reviewed my code, it's a pretty silly mistake. If not patched it can lead to an OOB read that could be used to trigger an access violation in very specific circumstances.

Edit: Saw your comment in my first pull request and edited the code style to match the rest of the project.

@tremwil tremwil changed the title Fix OOB read in NRSSR sanitizer Fix OOB read in NRSSR sanitizer + Change code style Mar 20, 2022
@tremwil tremwil changed the title Fix OOB read in NRSSR sanitizer + Change code style Fix OOB read bug and change code style in NRSSR sanitizer Mar 20, 2022
@TLeonardUK TLeonardUK merged commit b2c0ca8 into TLeonardUK:main Mar 21, 2022
@TLeonardUK
Copy link
Owner

Thanks.

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.

2 participants