소스 검색

qcacld-3.0: Fix potential infinite loop in get_container_ies_len

In the function get_container_ies_len, len (uint32) is calculated
from the length of the buffer parsed. Then it is copied to the uint8
pnConsumed pointer from the calling function. This could lead to
pnConsumed becoming 0 if len exceeds 255 and would cause infinte
loop in the function unpack_core.

Add changes to make pnConsumed passed from unpack_core to be uint32
so that there are no issues in get_container_ies_len

Change-Id: Ia5770b4becf7dd1cf7cb97ec2e0d94f3c5f4ed54
CRs-Fixed: 2101200
Vignesh Viswanathan 7 년 전
부모
커밋
30e69280c7
2개의 변경된 파일224개의 추가작업 그리고 224개의 파일을 삭제
  1. 112 112
      core/mac/src/include/dot11f.h
  2. 112 112
      core/mac/src/sys/legacy/src/utils/src/dot11f.c

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 112 - 112
core/mac/src/include/dot11f.h


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 112 - 112
core/mac/src/sys/legacy/src/utils/src/dot11f.c


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.