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 out-of-bounds buffer access in parse_command #530

Merged
merged 1 commit into from
Nov 12, 2018
Merged

Fix out-of-bounds buffer access in parse_command #530

merged 1 commit into from
Nov 12, 2018

Conversation

nmeum
Copy link
Contributor

@nmeum nmeum commented Nov 11, 2018

Since the cmd buffer needs to be null terminated we need to reserve
space for the null byte in the buffer.

Without this change an out-of-bounds buffer access is performed if the
first word is longer than 19 chars.

Fixes #529

Since the cmd buffer needs to be null terminated we need to reserve
space for the null byte in the buffer.

Without this change an out-of-bounds buffer access is performed if the
first word is longer than 19 chars.

Fixes #529
@fanglingsu fanglingsu merged commit 84e59ff into fanglingsu:master Nov 12, 2018
@fanglingsu
Copy link
Owner

@nmeum Thank you for your investigation! Great work!

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