From: Daniel Mack Date: Mon, 12 Oct 2015 12:44:26 +0000 (+0200) Subject: sd-daemon: wipe out memory before using CMSG_NXTHDR() X-Git-Tag: v228.1~1^2~49 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=dfbbceed38d59315271e2a7397c1f387a64c451b;hp=dfbbceed38d59315271e2a7397c1f387a64c451b 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. ---