hostap/wlantest
Johannes Berg a1f11e34c4 Use os_memdup()
This leads to cleaner code overall, and also reduces the size
of the hostapd and wpa_supplicant binaries (in hwsim test build
on x86_64) by about 2.5 and 3.5KiB respectively.

The mechanical conversions all over the code were done with
the following spatch:

    @@
    expression SIZE, SRC;
    expression a;
    @@
    -a = os_malloc(SIZE);
    +a = os_memdup(SRC, SIZE);
    <...
    if (!a) {...}
    ...>
    -os_memcpy(a, SRC, SIZE);

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-03-07 13:19:10 +02:00
..
bip.c wlantest: Fix bip_protect() memory allocation 2016-03-14 18:42:46 +02:00
bss.c wlantest: Add support for FT-PSK initial association key derivation 2015-08-06 20:47:25 +03:00
ccmp.c IEEE P802.11ah/D10.0 PV1 CCMP test vectors 2016-09-23 17:49:33 +03:00
ctrl.c Add Suite B 192-bit AKM 2015-01-27 01:43:52 +02:00
gcmp.c Declare all read only data structures as const 2015-04-25 17:33:06 +03:00
inject.c Remove trailing whitespace 2016-12-28 14:31:42 +02:00
Makefile Move CRC-32 routine from wlantest to src/utils 2016-10-09 17:13:23 +03:00
monitor.c wlantest: Add support for writing pcapng files 2013-05-26 20:58:42 +03:00
process.c Move CRC-32 routine from wlantest to src/utils 2016-10-09 17:13:23 +03:00
readpcap.c wlantest: Add -N command line argument to remove write buffering 2015-11-27 00:10:53 +02:00
rx_data.c Make struct wpa_eapol_key easier to use with variable length MIC 2016-10-10 21:11:46 +03:00
rx_eapol.c Use os_memdup() 2017-03-07 13:19:10 +02:00
rx_ip.c wlantest: Recognize hwsim_test packets 2013-05-26 22:19:52 +03:00
rx_mgmt.c wlantest: Add support for FT-PSK initial association key derivation 2015-08-06 20:47:25 +03:00
rx_tdls.c Simplify Timeout Interval element parsing 2015-04-22 22:05:11 +03:00
sta.c Add Suite B 192-bit AKM 2015-01-27 01:43:52 +02:00
test_vectors.c Move CRC-32 routine from wlantest to src/utils 2016-10-09 17:13:23 +03:00
tkip.c Use os_memdup() 2017-03-07 13:19:10 +02:00
wep.c Move CRC-32 routine from wlantest to src/utils 2016-10-09 17:13:23 +03:00
wired.c Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
wlantest.c wlantest: Add -N command line argument to remove write buffering 2015-11-27 00:10:53 +02:00
wlantest.h Make struct wpa_eapol_key easier to use with variable length MIC 2016-10-10 21:11:46 +03:00
wlantest_cli.c wlantest: Add a BSS probe_response counter 2013-12-26 13:37:06 +02:00
wlantest_ctrl.h wlantest: Add a BSS probe_response counter 2013-12-26 13:37:06 +02:00
writepcap.c wlantest: Add -N command line argument to remove write buffering 2015-11-27 00:10:53 +02:00