diff options
| author | Toomas Soome <tsoome@me.com> | 2019-01-21 16:39:16 +0200 |
|---|---|---|
| committer | Toomas Soome <tsoome@me.com> | 2019-06-18 21:33:03 +0300 |
| commit | e2294b844b9f4bfc375e88fd1260d9a39ffc82e1 (patch) | |
| tree | 8babe9ada85df48bcbb97a04662523c91692d06a /usr/src | |
| parent | 430c2cddc92582fc7155aaf65c78f0919d7081c1 (diff) | |
| download | illumos-gate-e2294b844b9f4bfc375e88fd1260d9a39ffc82e1.tar.gz | |
11103 link_audit: NULL pointer errors
Reviewed by: Norm Jacobs <naj@snapcon.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src')
| -rw-r--r-- | usr/src/cmd/sgs/link_audit/common/bindings.c | 2 | ||||
| -rw-r--r-- | usr/src/cmd/sgs/link_audit/common/hash.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/cmd/sgs/link_audit/common/bindings.c b/usr/src/cmd/sgs/link_audit/common/bindings.c index 28e3f0d316..f1a8e9c215 100644 --- a/usr/src/cmd/sgs/link_audit/common/bindings.c +++ b/usr/src/cmd/sgs/link_audit/common/bindings.c @@ -416,7 +416,7 @@ la_i86_pltenter(Elf32_Sym *symp, uint_t symndx, uintptr_t *refcooke, (void) close(fd); } - if (bhp->bh_bkts[bktno].bb_head == NULL) { + if (bhp->bh_bkts[bktno].bb_head == 0) { binding_entry * bep; unsigned int be_off; unsigned int sym_off; diff --git a/usr/src/cmd/sgs/link_audit/common/hash.c b/usr/src/cmd/sgs/link_audit/common/hash.c index da9641a7e4..fa03dab222 100644 --- a/usr/src/cmd/sgs/link_audit/common/hash.c +++ b/usr/src/cmd/sgs/link_audit/common/hash.c @@ -252,7 +252,7 @@ hash_string(const char *s, long modulo) unsigned int result = 0; int i = 1; - while (*s != NULL) { + while (*s != '\0') { result += (*s++ << i++); } |
