]> granicus.if.org Git - sysstat/commit
Replace strcpy() with strncpy() to avoid buffer overflows
authorSebastien GODARD <sysstat@users.noreply.github.com>
Thu, 11 Aug 2016 07:13:57 +0000 (09:13 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Thu, 11 Aug 2016 07:13:57 +0000 (09:13 +0200)
commit5aa69b67f03c00eded746c819eaa5b74a021ca1b
tree17c2daf6aeb529cfcc354ebd07d76b9e075752c1
parentb5d19361b8709e83746096838e1a076bef1caf93
Replace strcpy() with strncpy() to avoid buffer overflows

Using strcpy() is not safe since destination buffer may overflow, for
example if the string being copied doesn't contain a terminator.
This patch replaces strcpy() with strncpy() to make sure no buffer
overflows happen.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
cifsiostat.c
ioconf.c
iostat.c
rd_stats.c
sa_common.c