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

Account for kernel.pid_max > 65535 #13

Merged
merged 1 commit into from
Apr 15, 2022

Commits on Apr 15, 2022

  1. Account for kernel.pid_max > 65535

    Today's `kernel.pid_max=` is usually set to 2^22 (4194304) instead of
    the original 2^16 (65535), causing buffer overflow when trying to write
    `/proc/<PID>/cmdline` into the stack-allocated buffer. Let's fix this by
    using the maximum "string length" of int (calculated using a macro
    borrowed from systemd, which might be useful in the future).
    
    Fixes: dbus-fuzzer#11
    mrc0mmand committed Apr 15, 2022
    Configuration menu
    Copy the full SHA
    a1b02d3 View commit details
    Browse the repository at this point in the history