diff options
author | Ronan Le Martret <ronan.lemartret@iot.bzh> | 2017-08-29 16:07:56 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-12-13 15:02:25 +0100 |
commit | e572871c06b7d04722d56becf7ef8ad86b14124c (patch) | |
tree | 167729220b3ca98148183382fd64668287f902d9 /conf.d/cmake | |
parent | d60bc482a611e31da6e0b78b6e482ee270635891 (diff) |
Fix strncat funct
I: Statement might be overflowing a buffer in strncat. Common mistake:
BAD: strncat(buffer,charptr,sizeof(buffer)) is wrong, it takes the left over size as 3rd argument
GOOD: strncat(buffer,charptr,sizeof(buffer)-strlen(buffer)-1)
Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
Diffstat (limited to 'conf.d/cmake')
0 files changed, 0 insertions, 0 deletions