commit | 5e6b9141c11ebfd809acb69c7c672c6612334359 | [log] [tgz] |
---|---|---|
author | Marek Pola <marek.pola@sonymobile.com> | Thu Feb 05 14:22:34 2015 +0100 |
committer | Henrik Baard <henrik.baard@sonymobile.com> | Fri Feb 06 08:01:43 2015 +0100 |
tree | c6f919d57308c0d644881d17300323d64070d749 | |
parent | f3b2637e0611ac7953c18ce39a47b7c408a70160 [diff] |
prevent ioctl_init() to write outside buffer The strncpy operation does not write a 0 termination if the name is larger than the target buffer. Ensure that zero termination is always written using safe strlcpy function. Change-Id: Idb68cdff7cd1a860c1dfac7494fa99f3d382cb91