[CRIU] [PATCH 00/18] Fix coverity issues

Andrei Vagin avagin at openvz.org
Thu Nov 9 02:49:35 MSK 2017


From: Andrei Vagin <avagin at virtuozzo.com>

Andrei Vagin (18):
  unix: fix a memory leak
  plugin: don't declare two different variables with the same name
  netlink: don't call close a negative value
  restore: resume a pid what was returned by waitpid
  kerndat: don't call close for a negative value
  zdtm/lib: fix a case when a string may be unterminated
  compel: handle errors of sigaction()
  util: handle errors of setsockopt()
  lib/criu: fix a memory leak
  files: don't leak a file descriptor
  files: don't leak a buffer
  kerndat: prevent Out-of-bounds write
  namespaces: prevent dereferencing a null pointer
  kerndat: don't leak a file descriptor
  net: don't call close for a negative value
  cgroup: print errors of umount2 and rmdir
  mount: print errors of chmod
  img-remote: don't call close for a negative value

 compel/src/lib/infect.c |  6 +++++-
 criu/bfd.c              |  2 +-
 criu/cgroup.c           |  6 ++++--
 criu/cr-restore.c       |  3 ++-
 criu/files-reg.c        | 27 ++++++++++++++++-----------
 criu/img-remote.c       |  1 -
 criu/kerndat.c          |  9 +++++----
 criu/mount.c            |  3 ++-
 criu/namespaces.c       |  4 ++++
 criu/net.c              |  2 +-
 criu/plugin.c           |  3 ++-
 criu/sk-netlink.c       |  2 +-
 criu/sk-unix.c          |  1 +
 criu/util.c             | 10 +++++++---
 lib/c/criu.c            |  2 +-
 test/zdtm/lib/fs.c      |  2 +-
 16 files changed, 53 insertions(+), 30 deletions(-)

-- 
2.13.6



More information about the CRIU mailing list