]> git.ipfire.org Git - thirdparty/hostap.git/commit
UBSan: Pack MACsec peer id structure
authorJouni Malinen <j@w1.fi>
Sat, 23 Feb 2019 11:54:33 +0000 (13:54 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 25 Feb 2019 17:48:49 +0000 (19:48 +0200)
commitabde4eba45ac06eeb1a344b8a9a8ab946e1de5de
treec86fd3d16215079b4a5c486b1310c1ef3d32bec6
parentc4fccfc7a5dd75db8c28cab0ac27186d4598a995
UBSan: Pack MACsec peer id structure

This is needed to avoid an UBSan warning and since this struct is used
as part of a message construction, it needs to be packed anyway to
guarantee correct functionality.

ieee802_1x_kay.c:1021:3: runtime error: member access within misaligned address 0x0000031921e2 for type 'struct ieee802_1x_mka_peer_id', which requires 4 byte alignment

Signed-off-by: Jouni Malinen <j@w1.fi>
src/pae/ieee802_1x_kay_i.h