]> git.ipfire.org Git - thirdparty/hostap.git/commit
base64: Try to avoid static analyzer warning (part 2)
authorJouni Malinen <j@w1.fi>
Sun, 7 Dec 2014 20:02:57 +0000 (22:02 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 8 Dec 2014 09:07:56 +0000 (11:07 +0200)
commitff1dd3e9a13cd93adb4f8c1d8c93739d17dd7f41
treecfa5e2a870fe8005ddf21e2007f253455fbc1b44
parentd02dcb28bc4d38715a48535311b777658514bec0
base64: Try to avoid static analyzer warning (part 2)

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