wlan: Fix string termination and integer out of bound errors

Enhance the code to validate the input integer to avoid integer overflow.
Also, the '\0' is post appended to the end of input string in case missing
the string termination.

Change-Id: I3a8686e59f60d9293bf291ae423424dcf9ea4aac
CRs-fixed: 549423
2 files changed
tree: 36a9fac32011a4eaec60a66ad4d529da8dc5c40c
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig