Skip to content

Instantly share code, notes, and snippets.

@jasperla
Created February 4, 2013 10:30
Show Gist options
  • Save jasperla/4706054 to your computer and use it in GitHub Desktop.
Save jasperla/4706054 to your computer and use it in GitHub Desktop.
cppcheck -f output for wpa_supplicant 2.0
[src/crypto/tls_schannel.c:419]: (error) Array 'outbufs[1]' accessed at index 1, which is out of bounds.
[src/crypto/tls_schannel.c:420]: (error) Array 'outbufs[1]' accessed at index 1, which is out of bounds.
[src/l2_packet/l2_packet_ndis.c:205] -> [src/l2_packet/l2_packet_ndis.c:224]: (error) Possible null pointer dereference: l2_ndisuio_global - otherwise it is redundant to check it against null.
[src/utils/pcsc_funcs.c:1133]: (error) syntax error
[src/utils/radiotap.c:95]: (error) Uninitialized variable: __ptr
[src/utils/radiotap.c:98]: (error) Uninitialized variable: __ptr
[src/utils/radiotap.c:272]: (error) Uninitialized variable: __ptr
[wpa_supplicant/config.c:2666] -> [wpa_supplicant/config.c:2667]: (error) Possible null pointer dereference: ssid - otherwise it is redundant to check it against null.
[wpa_supplicant/dbus/dbus_new_handlers_p2p.c:1061] -> [wpa_supplicant/dbus/dbus_new_handlers_p2p.c:1069]: (error) Possible null pointer dereference: peer_obj_paths - otherwise it is redundant to check it against null.
[wpa_supplicant/p2p_supplicant.c:3218] -> [wpa_supplicant/p2p_supplicant.c:3221]: (error) Possible null pointer dereference: scan_res - otherwise it is redundant to check it against null.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment