]> git.ipfire.org Git - thirdparty/hostap.git/commit
UBSan: Avoid a warning on signed left shift
authorJouni Malinen <j@w1.fi>
Sat, 23 Feb 2019 16:43:38 +0000 (18:43 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 25 Feb 2019 17:48:49 +0000 (19:48 +0200)
commit429ed54a3daee0e8758109b8ed86ca9ca735789c
treea2af485e2b87585493df442e4f8ce87a7e7eacda
parentb3957edbe9c646129481b606ccf653101ba7bc15
UBSan: Avoid a warning on signed left shift

Use unsigned 1 (1U) instead of signed (1) when doing left shift that
could potentially need to use all bits of the 32-bit unsigned variable.

radius_server.c:2254:14: runtime error: left shift of 1 by 31 places cannot be represented in type 'int'

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