FPII-1864:CR:890228-Buffer overflow vulnerability when processing ioctl SIOCSIWSCAN

wlan: validate essid length before processing scan req

Presently we are not validating the length of the essid received
and directly copying the buffer without size checking.
Perform bound checking before processing the scan req.

Change-Id: I786e4feb67bf039df3d217138a412da54f51787d
CRs-fixed: 890228
1 file changed
tree: b7e310cf86c5f0ab72d327492f2a1e3f7f6c90e3
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile