From e83359656fe4880d77df4da075573820c2a7adc0 Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Mon, 11 Feb 2019 22:45:35 +0200 Subject: 10393 ctf: NULL pointer errors Reviewed by: Andy Stormont Reviewed by: Robert Mustacchi Reviewed by: Andy Fiddaman Approved by: Dan McDonald --- usr/src/common/ctf/ctf_create.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr/src/common/ctf/ctf_create.c') diff --git a/usr/src/common/ctf/ctf_create.c b/usr/src/common/ctf/ctf_create.c index c0a4b15055..355165eb12 100644 --- a/usr/src/common/ctf/ctf_create.c +++ b/usr/src/common/ctf/ctf_create.c @@ -1986,7 +1986,7 @@ ctf_add_function(ctf_file_t *fp, ulong_t idx, const ctf_funcinfo_t *fip, if (ctf_dsd_lookup(fp, idx) != NULL) return (ctf_set_errno(fp, ECTF_CONFLICT)); - if (symbase == NULL) + if (symbase == (uintptr_t)NULL) return (ctf_set_errno(fp, ECTF_STRTAB)); if (idx > fp->ctf_nsyms) @@ -2053,7 +2053,7 @@ ctf_add_object(ctf_file_t *fp, ulong_t idx, ctf_id_t type) if (ctf_dsd_lookup(fp, idx) != NULL) return (ctf_set_errno(fp, ECTF_CONFLICT)); - if (symbase == NULL) + if (symbase == (uintptr_t)NULL) return (ctf_set_errno(fp, ECTF_STRTAB)); if (idx > fp->ctf_nsyms) -- cgit v1.2.3