freebsd-skq/lib/libkvm
ngie a9f56210b8 Fix up pointer issues with lib/libkvm
In particular,
- avoid dereferencing NULL pointers
- test pointers against NULL, not 0
- test for errout == NULL in the top-level functions (kvm_open, kvm_openfiles,
  kvm_open2, etc)
- Replace a realloc and free on failure with reallocf

Found with: devel/cocchinelle

Differential Revision: https://reviews.freebsd.org/D5954
MFC after: 1 week
Reviewed by: jhb
Sponsored by: EMC / Isilon Storage Division
2016-04-22 18:05:34 +00:00
..
kvm_aarch64.h Add support to libkvm for reading vmcores from other architectures. 2015-11-27 18:58:26 +00:00
kvm_amd64.c Fix up pointer issues with lib/libkvm 2016-04-22 18:05:34 +00:00
kvm_amd64.h Add support to libkvm for reading vmcores from other architectures. 2015-11-27 18:58:26 +00:00
kvm_arm.c Fix up pointer issues with lib/libkvm 2016-04-22 18:05:34 +00:00
kvm_arm.h Rename pte.h to pte-v4.h and start including directly either pte-v4.h 2016-02-19 09:23:32 +00:00
kvm_cptime.c Add support to libkvm for reading vmcores from other architectures. 2015-11-27 18:58:26 +00:00
kvm_file.c Remove trailing whitespace. 2015-11-26 19:42:10 +00:00
kvm_getcptime.3
kvm_geterr.3
kvm_getfiles.3
kvm_getloadavg.3
kvm_getloadavg.c Add support to libkvm for reading vmcores from other architectures. 2015-11-27 18:58:26 +00:00
kvm_getpcpu.3 Add kvm_getncpus() to obtain mp_ncpus. 2014-02-12 19:22:48 +00:00
kvm_getprocs.3
kvm_getswapinfo.3
kvm_getswapinfo.c Add support to libkvm for reading vmcores from other architectures. 2015-11-27 18:58:26 +00:00
kvm_i386.c Fix up pointer issues with lib/libkvm 2016-04-22 18:05:34 +00:00
kvm_i386.h Fix building with GCC since PAGE_MASK is signed on i386. 2016-01-14 15:51:13 +00:00
kvm_minidump_aarch64.c Fix up pointer issues with lib/libkvm 2016-04-22 18:05:34 +00:00
kvm_minidump_amd64.c Fix up pointer issues with lib/libkvm 2016-04-22 18:05:34 +00:00
kvm_minidump_arm.c Fix up pointer issues with lib/libkvm 2016-04-22 18:05:34 +00:00
kvm_minidump_i386.c Fix up pointer issues with lib/libkvm 2016-04-22 18:05:34 +00:00
kvm_minidump_mips.c Fix up pointer issues with lib/libkvm 2016-04-22 18:05:34 +00:00
kvm_mips.h Add support to libkvm for reading vmcores from other architectures. 2015-11-27 18:58:26 +00:00
kvm_native.3 Add support to libkvm for reading vmcores from other architectures. 2015-11-27 18:58:26 +00:00
kvm_nlist.3 Add support to libkvm for reading vmcores from other architectures. 2015-11-27 18:58:26 +00:00
kvm_open.3 Add support to libkvm for reading vmcores from other architectures. 2015-11-27 18:58:26 +00:00
kvm_pcpu.c Add support to libkvm for reading vmcores from other architectures. 2015-11-27 18:58:26 +00:00
kvm_powerpc64.c Add support to libkvm for reading vmcores from other architectures. 2015-11-27 18:58:26 +00:00
kvm_powerpc.c Add support to libkvm for reading vmcores from other architectures. 2015-11-27 18:58:26 +00:00
kvm_private.h Add support to libkvm for reading vmcores from other architectures. 2015-11-27 18:58:26 +00:00
kvm_proc.c Fix up pointer issues with lib/libkvm 2016-04-22 18:05:34 +00:00
kvm_read.3 Add support to libkvm for reading vmcores from other architectures. 2015-11-27 18:58:26 +00:00
kvm_sparc64.c Add support to libkvm for reading vmcores from other architectures. 2015-11-27 18:58:26 +00:00
kvm_sparc64.h Add support to libkvm for reading vmcores from other architectures. 2015-11-27 18:58:26 +00:00
kvm_vnet.c Add support to libkvm for reading vmcores from other architectures. 2015-11-27 18:58:26 +00:00
kvm.3 Add support to libkvm for reading vmcores from other architectures. 2015-11-27 18:58:26 +00:00
kvm.c Fix up pointer issues with lib/libkvm 2016-04-22 18:05:34 +00:00
kvm.h Add support to libkvm for reading vmcores from other architectures. 2015-11-27 18:58:26 +00:00
Makefile First pass through library packaging. 2016-02-04 21:16:35 +00:00
Makefile.depend Add support to libkvm for reading vmcores from other architectures. 2015-11-27 18:58:26 +00:00