ref: 18b931dde7d9259968a91a1baee96db92a79d34d
parent: 0c7d5168c3dde9cf048cebc56d304466f8d85549
author: cinap_lenrek <[email protected]>
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 */