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

sd-daemon: wipe out memory before using CMSG_NXTHDR() #1540

Merged
merged 1 commit into from Oct 12, 2015

Commits on Oct 12, 2015

  1. sd-daemon: wipe out memory before using CMSG_NXTHDR()

    CMSG_NXTHDR() checks for cmsg->cmsg_len *after* it increased the pointer.
    While this makes sense for parsing received messages, that's a pitfall
    for code crafting messages with this macro.
    
    Wipe out the allocated memory to fix this.
    zonque committed Oct 12, 2015
    Configuration menu
    Copy the full SHA
    40f4423 View commit details
    Browse the repository at this point in the history