]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix xdr_bytes() strict-aliasing violations 1012/head
authorGreg Hudson <ghudson@mit.edu>
Tue, 10 Dec 2019 17:06:05 +0000 (12:06 -0500)
committerGreg Hudson <ghudson@mit.edu>
Sun, 5 Jan 2020 06:16:55 +0000 (01:16 -0500)
commit21b39d0196e3e0bb6b1bfbf5d60a0596cfc82e27
treec32be304cc8df851771d1fbc2357c749d5fac7d3
parent38151b3c1e69873122065e1f8351c026e1edc737
Fix xdr_bytes() strict-aliasing violations

When xdr_bytes() is used for a gss_buffer_desc object, a temporary
character pointer must be used for the data value to avoid a strict
aliasing violation.

When xdr_bytes() is used for a krb5_keyblock object, a temporary
character pointer must also be used, even though the data pointer is
of type unsigned char *, to avoid a clang warning on macOS due to the
"#pragma pack" declaration in krb5.h.
src/lib/kadm5/kadm_rpc_xdr.c
src/lib/rpc/auth_gssapi_misc.c
src/lib/rpc/authgss_prot.c