[Libguestfs] [PATCH 00/11] Various Coverity fixes

Pino Toscano
Fri, 03 Mar 2017 14:32:54 -0000

Hi,

this patch series fixes some issues discovered by Coverity.
Most of them are memory leaks, usually on error; there are also invalid
memory access issues.

Thanks,

Pino Toscano (11):
  java: link libguestfs_jni against libutils
  java: fix invalid memory access for FBuffer in struct lists
  daemon: tsk: properly use GUESTFS_MAX_CHUNK_SIZE
  edit: fix small memory leak on error
  java: fix possible memory leak on error
  fish: fully init the msghdr buffers
  tail: pass the right path for Windows guests
  ocaml: do not try to malloc 0 elements in get_all_event_callbacks
  python: do not try to malloc 0 elements in get_all_event_callbacks
  ruby: do not try to malloc 0 elements in get_all_event_callbacks
  java: do not try to malloc 0 elements in get_all_event_callbacks

 cat/tail.c                | 2 +-
 common/edit/file-edit.c   | 1 +
 daemon/sleuthkit.c        | 2 +-
 fish/rc.c                 | 9 +++------
 generator/java.ml         | 8 +++-----
 java/Makefile.am          | 4 +++-
 java/handle.c             | 3 ++-
 ocaml/guestfs-c.c         | 3 ++-
 python/handle.c           | 3 ++-
 ruby/ext/guestfs/handle.c | 3 ++-
 10 files changed, 20 insertions(+), 18 deletions(-)

--
2.9.3