]> git.ipfire.org Git - thirdparty/hostap.git/commit
UBSan: Split loop index decrementation into a separate step
authorJouni Malinen <j@w1.fi>
Sat, 23 Feb 2019 16:14:29 +0000 (18:14 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 25 Feb 2019 17:48:49 +0000 (19:48 +0200)
commitb3957edbe9c646129481b606ccf653101ba7bc15
tree9aadba5c85e4a9915e703974e2b450c33713ae2e
parent5ac13f6d00acb7e80f3387b58923029a3ac412b9
UBSan: Split loop index decrementation into a separate step

Avoid an unnecessary unsigned integer overflow warning due to loop index
j-- use.

hostapd.c:661:10: runtime error: unsigned integer overflow: 0 - 1 cannot be represented in type 'unsigned int'

Signed-off-by: Jouni Malinen <j@w1.fi>
src/ap/hostapd.c