Fix missing null termination in wifi_manager
authorSeongil Hahm <seongil.hahm@samsung.com>
Mon, 18 Sep 2017 16:10:33 +0000 (09:10 -0700)
committerSeongil Hahm <seongil.hahm@samsung.com>
Mon, 18 Sep 2017 16:10:33 +0000 (09:10 -0700)
commit53a31f9213bf9bda9bd7a92e2aaedf2a1cf9273a
treed7dc02b23474768044a9321a04f46b0c9fd5958b
parentddd30966ba4d51a75c80e7f8c024e2f6b7fd17ba
Fix missing null termination in wifi_manager

1. Use strlen(str) + 1 instead of strlen(str) when calculating the length of ssid or passphrase
2. Add checkpoint logic to judge that ssid length is greater than 31 and passphrase length is greather than 63.
framework/include/wifi_manager/wifi_manager.h
framework/src/wifi_manager/wifi_manager.c