commit | f68e0da7c7359b11ba55eccb4e393db2c5563197 | [log] [tgz] |
---|---|---|
author | Jack Yu <jackyu@google.com> | Tue Feb 07 14:53:09 2017 -0800 |
committer | Jack Yu <jackyu@google.com> | Fri Feb 10 12:27:04 2017 -0800 |
tree | c3f35821edfcaa220e30e7283257684af1181247 | |
parent | 5e93ad2cce4ee5b5b704bf527da1800a0bc75633 [diff] |
Replaced strcpy, strlen, strncpy with safer string functions Using strcpy() or strlen() followed by strncpy() could be dangerous. We should replace them. strcpy -> strncpy strlen -> strnlen strcmp -> strncmp Also fixed uninitialized structure uses. Test: Telephony sanity tests bug: 35108861 Change-Id: I323e2947b153d9214cfc1827168346200916431f