hostap/src
Jouni Malinen a9aaacbb50 Check os_snprintf() result more consistently - maximum length
This adds verification of os_snprintf() result against the maximum
buffer length. These changes were done automatically with spatch
using the following semantic patch:

@@
expression E1,E2,E3;
statement S1;
@@

  E1 = os_snprintf(E2, E3, ...);
- if (\( E1 < 0 \| E1 <= 0 \))
+ if (os_snprintf_error(E3, E1))
(
  S1
|
{ ... }
)

Signed-off-by: Jouni Malinen <j@w1.fi>
2014-12-08 11:42:07 +02:00
..
ap Use os_calloc() instead of os_zalloc() 2014-12-08 11:42:07 +02:00
common Use os_zalloc() instead of os_malloc() and os_memset() 2014-12-08 11:42:07 +02:00
crypto ERP: Add HMAC-SHA256 KDF (RFC 5295) 2014-12-04 12:08:59 +02:00
drivers Check os_snprintf() result more consistently - maximum length 2014-12-08 11:42:07 +02:00
eap_common ERP: Add TV/TLV parser 2014-12-04 12:08:59 +02:00
eap_peer Use os_calloc() instead of os_zalloc() 2014-12-08 11:42:07 +02:00
eap_server EAP-SIM DB: Make recv() null termination easier for static analyzers 2014-12-06 18:35:53 +02:00
eapol_auth ERP: Add support for ERP on EAP server and authenticator 2014-12-04 12:16:27 +02:00
eapol_supp ERP: Add wpa_supplicant ERP_FLUSH ctrl_iface command 2014-12-04 12:16:29 +02:00
l2_packet proxyarp: Do not limit NDISC snoop packet size to 150 2014-11-28 22:41:26 +02:00
p2p P2P: Split p2p_channels_union() into two functions 2014-12-06 12:16:32 +02:00
pae MACsec: Fix policy configuration 2014-10-30 11:43:47 +02:00
radius ERP: Add support for ERP on EAP server and authenticator 2014-12-04 12:16:27 +02:00
rsn_supp Make GTK length validation easier to analyze 2014-12-06 12:16:32 +02:00
tls TLS: Reorder length bounds checking to avoid static analyzer warning 2014-12-06 18:36:02 +02:00
utils Add os_snprintf_error() helper 2014-12-08 11:42:07 +02:00
wps WPS: Add missing device types 2014-10-26 01:24:08 +03:00
lib.rules Add rules for building src/crypto as a library 2009-12-05 22:03:46 +02:00
Makefile MACsec: Add PAE implementation 2014-05-09 20:42:44 +03:00