wlan: Resolve out of bound memory access while processing VSIEs

Currently elem_len is  not  checked against WPS_OUI_TYPE_SIZE
before it uses the buffer for memcmp, this may cause the buffer
overread.
To fix this add the proper comparision logic before the API uses
the buffer.

Change-Id: I9ba63543a529fb88932500be39045fcc19509863
CRs-Fixed: 2096984
1 file changed
tree: 1314cb49785b4d6bc712c677c17d4e2c2fe93df9
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile