ref: 8e1f65241466870c446095c21e7576ed68228ab9
parent: 81c997e78deb386760ffcfde9d4777a0efc3e9b7
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Jan 29 21:00:07 EST 2015
wifi: ignore truncated tlv in beacon/probes
--- a/sys/src/9/pc/wifi.c
+++ b/sys/src/9/pc/wifi.c
@@ -388,6 +388,8 @@
for(e = d + len; d+2 <= e; d = x){d += 2;
x = d + d[-1];
+ if(x > e)
+ break; /* truncated */
t = d[-2];
/* skip double entries */
--
⑨