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

cmdline file without NULL will cause Sysinfo to be unable to get the command line string #1465

Closed
unknowndevQwQ opened this issue Feb 2, 2025 · 0 comments · Fixed by #1466
Labels

Comments

@unknowndevQwQ
Copy link

Describe the bug
Fill the content of the entire cmdline through some dirty methods and do not keep the end of the NULL character. At this time, Sysinfo will not be able to read the command line of the corresponding process

sysinfo 0.30.13 on linux

To Reproduce
This can only be reproduced if the output of env | wc -c is greater than 4096:

run git clone https://github.com/unknowndevQwQ/killmyargv && cargo test
The expectation is that there should be a long string in left, but what actually happens is that no string is obtained. And procps-ng can read cmdline normally in this case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant