prima: NULL pointer dereference in sapFsm.c

Cuurently, pointer macList passed to functions sapSortMacList and
sapPrintACL may be NULL which is dereferenced in both these functions.
Added a NULL check before dereferencing the pointer. Also, variable size
passed to these functions may exceeds maximum addresses. Added a sanity
check against MAX_ACL_MAC_ADDRESS to fix this.

Change-Id: I04170a7a555107a266a9353c375e7d184fe73b58
CRs-Fixed: 642554
1 file changed
tree: 841a85c2b34a2cf04aaf3eec908480271205d2d1
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig