Clear allocated debug message buffers explicitly
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 17 Jun 2015 13:30:34 +0000 (16:30 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 17 Jun 2015 13:30:34 +0000 (16:30 +0300)
commitb4c0f584527d5bfb9fb313405ad58369336ab94c
treeb82fc95f634e55fb998ceef5a296679a2c5700ae
parent14fd03312cf1b448f17e810fbc6705251a453aec
Clear allocated debug message buffers explicitly

When hostapd or wpa_supplicant is run in debug more with key material
prints allowed (-K on the command line), it is possible for passwords
and keying material to show up in debug prints. Since some of the debug
cases end up allocating a temporary buffer from the heap for processing
purposes, a copy of such password may remain in heap. Clear these
temporary buffers explicitly to avoid causing issues for hwsim test
cases that verify contents of memory against unexpected keys.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
hostapd/Android.mk
hostapd/Makefile
src/utils/wpa_debug.c