Mercurial > illumos > illumos-gate
changeset 13917:c2c5e1bf3119
3450 elfdump crashes on non-Solaris/Linux objects
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Approved by: Garrett D'Amore <garrett@damore.org>
author | Richard Lowe <richlowe@richlowe.net> |
---|---|
date | Fri, 04 Jan 2013 21:21:01 -0500 |
parents | a84bad6b576e |
children | 4f2ce6c1a90c |
files | usr/src/cmd/sgs/elfdump/common/elfdump.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/cmd/sgs/elfdump/common/elfdump.c Tue Jan 01 21:14:26 2013 -0500 +++ b/usr/src/cmd/sgs/elfdump/common/elfdump.c Fri Jan 04 21:21:01 2013 -0500 @@ -2225,7 +2225,6 @@ /* Gather information about the version sections */ - bzero(versym, sizeof (*versym)); versym->max_verndx = 1; for (cnt = 1; cnt < shnum; cnt++) { Cache *_cache = &cache[cnt]; @@ -4739,7 +4738,7 @@ size_t ndx, shstrndx, shnum, phnum; Shdr *shdr; Cache *cache; - VERSYM_STATE versym; + VERSYM_STATE versym = { 0 }; int ret = 0; int addr_align;