[PATCH 7/7] wpa_supplicant: fix null dereference in ieee802_1x_get_mib_sta()

Johannes Berg johannes at sipsolutions.net
Mon Feb 10 06:54:56 EST 2014

On Mon, 2014-02-10 at 12:44 +0100, Holger Schurig wrote:
> Hmm, isn't it allowed to pass NULL to the %s format specifier of
> printf/snprintf and friends?  Or is it a GCC feature that it prints
> the string "(null)" then?  That is perfectly "valgrind-clean".

I was wondering the same, but POSIX (man 3p printf, if you have it
installed) doesn't seem to talk about passing NULL to %s.


More information about the HostAP mailing list