]> git.ipfire.org Git - thirdparty/hostap.git/commit
base64: Try to avoid static analyzer warning
authorJouni Malinen <j@w1.fi>
Sat, 6 Dec 2014 17:03:52 +0000 (19:03 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 6 Dec 2014 17:26:56 +0000 (19:26 +0200)
commitcdbc0baac6f3a2169c555c475a230eff41c43137
treec95c08a14352341d2b34367a04ec6b471f3702bb
parentd84416a2af92b7f60089f04670691372c4f5fea2
base64: Try to avoid static analyzer warning

Shift right on unsigned char limits the value to 0..63 which is within
bounds for base64_table[]. Anyway, some static analyzers do not seem to
understand that. See if an otherwise unnecessary masking gets rid of
false warnings. (CID 62858)

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