aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/driver.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2020-12-04 11:45:03 (GMT)
committerJouni Malinen <j@w1.fi>2020-12-04 11:59:37 (GMT)
commitbba926350a0e28fa181af7caee24a11619ad10fc (patch)
tree2cce3851f679e747a5369553b9334db695663f25 /src/drivers/driver.h
parentd215f42538289c230c015550bc4efb4586c208b2 (diff)
downloadhostap-master.zip
hostap-master.tar.gz
hostap-master.tar.bz2
Fix gcc-10 build with -Werror=array-bounds and dl_list_for_each()HEADpendingmaster
The earlier workaround for UBSAN issues in commit 3b6b3ae58133 ("Modify dl_list_for_each() to not use unaligned access with WPA_TRACE") ended up using a construction in which the type cast to the containing structure was compared instead of the struct dl_list pointers. While that worked around the UBSAN issue, it resulted in a comparison that gcc-10 interprets as being out of bounds for struct dl_list (which it obviously is since this is to find the start of the containing structure). Revert that workaround and instead, mark the struct dl_list used within struct os_alloc_trace to have matching 16 octet alignment as the containing structure. This is also restoring consistent design for dl_list_for_each*(). Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/drivers/driver.h')
0 files changed, 0 insertions, 0 deletions