criu/lib
Kir Kolyshkin e5654e586c Use strlcpy
It's better to

1. Use strlcpy() instead of strncpy() as otherwise we might end up
   with a not NULL-terminated string, which opens a portal to hell.
   There are a few places reported by Coverity for this, such as:
    - in criu_connect(), Coverity CID 51591;
    - in proc_pid_parse(), Coverity CID 51590;
    - in move_veth_to_bridge(), Coverity CID 51593;
    - etc.

2. Use strlcpy() instead of strcpy() to avoid buffer overruns.
   Some of these are also reported by Coverity, for example
   the one in dump_filemap(), Coverity CID 51630.

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2015-10-07 14:57:28 +03:00
..
criu.c Use strlcpy 2015-10-07 14:57:28 +03:00
criu.h irmap: add --irmap-scan-path option 2015-09-21 11:46:12 +03:00
criu.pc.in lib: Generate pkgconfig file 2014-08-04 13:57:18 +04:00
Makefile Always use ARCH_DIR 2014-02-10 14:33:11 +04:00