[PATCH v4] getcwd: Set errno to ERANGE for size == 1 (CVE-2021-3999)
Andreas Schwab
schwab@linux-m68k.org
Fri Jan 21 17:59:35 GMT 2022
On Jan 21 2022, Siddhesh Poyarekar via Libc-alpha wrote:
> +static int
> +recv_fd (const int sock)
> +{
> + struct msghdr msg;
> + union
> + {
> + struct cmsghdr hdr;
> + char buf[CMSG_SPACE(sizeof(int))];
> + } cmsgbuf;
Zero-init like in send_fd.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
More information about the Libc-alpha
mailing list