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 buffer overrun #83

Merged
merged 1 commit into from
Nov 10, 2021
Merged

Conversation

kariya-mitsuru
Copy link
Contributor

If a content of /proc/[pid]/cmdline was longer than 4096, then buffer overrun occured. (Because cmdline_to_string required a double '\0' at the end of the string)
Moreover, if a cmdline contained a zero length argument, cmdline_to_string ignored the rest of arguments.

If a content of /proc/[pid]/cmdline was longer than 4096, then buffer
overrun occured.  (Because cmdline_to_string required a double '\0' at
the end of the string)
Moreover, if a cmdline contained a zero length argument,
cmdline_to_string ignored the rest of arguments.
@gkammela gkammela merged commit 61a4614 into fenrus75:master Nov 10, 2021
@gkammela
Copy link
Collaborator

Thank you for your pull request.

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