diff options
author | Enji Cooper <ngie@FreeBSD.org> | 2016-04-22 18:05:34 +0000 |
---|---|---|
committer | Enji Cooper <ngie@FreeBSD.org> | 2016-04-22 18:05:34 +0000 |
commit | fb0e1892d9e31cdba013c27b24c47c86838924a8 (patch) | |
tree | bb4bdeb74de817bae84cb2140465d0699d8249d8 /lib/libc_nonshared | |
parent | 4c26ac696ca202c0aa1976f08e527adca4f9c946 (diff) | |
download | src-fb0e1892d9e31cdba013c27b24c47c86838924a8.tar.gz src-fb0e1892d9e31cdba013c27b24c47c86838924a8.zip |
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
Notes
Notes:
svn path=/head/; revision=298485
Diffstat (limited to 'lib/libc_nonshared')
0 files changed, 0 insertions, 0 deletions