hostapd/src
Jouni Malinen a4c133ea73 WPS: Optimize attribute parsing workaround
Optimize the search for nonzero octets when checking for the need to
work around WPS M1 padding. The previous implementation was really
inefficient (O(n^2)) and while that was likely sufficiently fast for the
cases where the MMPDU size limit prevents long buffers (e.g., all P2P
Action frames), it might be able to take tens of seconds on low-end CPUs
with maximum length EAP-WSC messages during WPS provisioning. More
visibly, this was causing OSS-Fuzz to time out a test case with
unrealisticly long data (i.e., almost 10 times the maximum EAP-WSC
buffer length).

Credit to OSS-Fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=60039
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
2023-07-18 11:46:57 +03:00
..
ap EHT: Process puncturing bitmap from channel select driver event for ACS 2023-06-22 17:49:10 +03:00
common Add support to configure per-MLO link maximum supported channel width 2023-06-22 22:32:42 +03:00
crypto OpenSSL: Add TLS 1.3 signature algorithms for Suite B 2023-03-22 23:58:47 +02:00
drivers EHT: Process puncturing bitmap from channel select driver event for ACS 2023-06-22 17:49:10 +03:00
eap_common crypto: Check if crypto_bignum_to_bin() is successful 2022-12-17 12:11:13 +02:00
eap_peer TTLS client: Support phase2_auth=2 2023-07-17 21:25:06 +03:00
eap_server EAP-TTLS server: Add Ident field to MS-CHAP-Error 2023-02-20 19:38:02 +02:00
eapol_auth Do not disconnect EAPOL-Logoff before authentication 2023-05-04 11:10:16 +03:00
eapol_supp Discard unencrypted EAPOL-EAP when TK is set and PMF is enabled 2022-05-07 21:37:08 +03:00
fst FST: More robust bounds checking of local data in fst_dump_mb_ies() 2022-05-08 17:18:58 +03:00
l2_packet Replace "dummy" with "stub" in comments/documentation 2021-10-11 20:52:50 +03:00
p2p P2P: Do not print control characters in debug 2023-07-18 11:15:15 +03:00
pae mka: Allow configuration of MACsec hardware offload 2023-02-21 19:26:47 +02:00
pasn PASN: Introduce configuration option to allow/deny PASN-UNAUTH 2023-05-25 22:54:12 +03:00
radius RADIUS: Add Filter-Id attribute 2022-10-31 11:56:57 +02:00
rsn_supp WMM: Advertise support for 16 PTKSA replay counters for non-AP STA 2023-04-18 11:40:10 +03:00
tls TLS: Fix unsigned int underflow in internal TLS 1.0/1.1 implementation 2022-11-20 19:11:01 +02:00
utils webkit2: Avoid deprecated function call 2023-02-23 16:30:04 +02:00
wps WPS: Optimize attribute parsing workaround 2023-07-18 11:46:57 +03:00
build.rules build: Rebuild libs all the time 2020-10-12 20:18:02 +03:00
lib.rules build: lib.rules: Add common-clean 2020-10-16 12:51:12 +03:00
Makefile PASN: Move initiator changes into a separate file 2022-11-04 00:52:17 +02:00
objs.mk build: Fix dependency file inclusion 2020-10-12 11:05:16 +03:00