瀏覽代碼

qcacld-3.0: Fix FTIE sha384 akm parse failure

The FTIE subelem lengths are validated before copying
the R0-KH and R1-KH subelement. So remove the sub-element
length sanity check, which is causing parse failure.

Change-Id: I2fd2423e3d33e557e93a82ca250cb8bee1013c1a
CRs-Fixed: 2445863
Pragaspathi Thilagaraj 6 年之前
父節點
當前提交
d68c61f8d3
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      core/mac/src/sys/legacy/src/utils/src/parser_api.c

+ 2 - 3
core/mac/src/sys/legacy/src/utils/src/parser_api.c

@@ -2808,9 +2808,8 @@ QDF_STATUS wlan_parse_ftie_sha384(uint8_t *frame, uint32_t frame_len,
 
 		id = *pos++;
 		len = *pos++;
-		if (len < 1 ||
-		    (len > (ie_end - pos))) {
-			pe_err("Invalid FT subelem length %d", len);
+		if (len < 1) {
+			pe_err("Invalid FT subelem length");
 			return QDF_STATUS_E_FAILURE;
 		}