qcwcn: Heap-buffer-overflow in register_monitor_sock() of wifi hal

This changes is to avoid the buffer-overflow in register_monitor_sock()
where "nreg->monsock" is getting filled with the data of length
"ctrl_msg->monsock_len" without the validation of length.
Address this issue by have a length check done before filling the buffer.

Change-Id: I36b7ac274bd4f92eceabd5bd6534c73ae5a9ae73
CRs-Fixed: 2604404
1 file changed
tree: 7dec4adb02379ca148eb107c4b7a9fb5091e92d0
  1. cld80211-lib/
  2. qcwcn/
  3. wcnss-service/
  4. Android.mk