qcacld-3.0: Validate Country IE length before copying country code

During starting of SAP, after extracting the pointer to the country IE,
country code is copied without proper IE length validation. A smaller
than accceptible IE length can cause out of bound memory access.

Validate length with with the minimum acceptible length before copying.

Change-Id: Ie2115bdbd22badd51ea40d028331ef1a74b02281
CRs-Fixed: 2150285
1 file changed
tree: 4edd036a586cc02afc02d4f1385ccd6443fa3e44
  1. components/
  2. core/
  3. uapi/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile
  8. README.txt