[PATCH] Make padding in struct sockaddr_storage explicit [BZ #20111]
Andreas Schwab
schwab@suse.de
Mon May 23 08:44:00 GMT 2016
Florian Weimer <fweimer@redhat.com> writes:
> diff --git a/sysdeps/unix/sysv/linux/bits/socket.h b/sysdeps/unix/sysv/linux/bits/socket.h
> index 0581c79..8fbb6be 100644
> --- a/sysdeps/unix/sysv/linux/bits/socket.h
> +++ b/sysdeps/unix/sysv/linux/bits/socket.h
> @@ -158,16 +158,15 @@ struct sockaddr
>
>
> /* Structure large enough to hold any socket address (with the historical
> - exception of AF_UNIX). We reserve 128 bytes. */
> + exception of AF_UNIX). */
> #define __ss_aligntype unsigned long int
> -#define _SS_SIZE 128
> #define _SS_PADSIZE (_SS_SIZE - (2 * sizeof (__ss_aligntype)))
_SS_PADSIZE needs to be updated here as well. Otherwise, looks ok.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
More information about the Libc-alpha
mailing list