]> git.ipfire.org Git - thirdparty/hostap.git/commit - hostapd/hlr_auc_gw.c
hlr_auc_gw: Hide a bogus static analyzer warning
authorJouni Malinen <j@w1.fi>
Sat, 18 Jul 2015 19:53:07 +0000 (22:53 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 18 Jul 2015 19:55:02 +0000 (22:55 +0300)
commit3dfaedb433ab7b69f4d2bbe5cf8894a8a6277bfe
tree995749a83f96035cee8c51ca445d6999c7f0685e
parent3b765ea545a89b29826458cdd1f0f04130463594
hlr_auc_gw: Hide a bogus static analyzer warning

For some reason, snprintf() was not seen as sufficient to remove
potentially tainted string from fgets() before passing this to rename().
This does not make much sense, but anyway, try to get rid of the warning
by using a separate buffer for the internally written file names.
(CID 72690)

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