Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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>
  • Loading branch information...
commit 8a8ef765b184471a4ae9bca79060e41a27d0d70f 1 parent 396f90f
@richlowe richlowe authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  usr/src/cmd/sgs/elfdump/common/elfdump.c
View
3  usr/src/cmd/sgs/elfdump/common/elfdump.c
@@ -2225,7 +2225,6 @@ versions(Cache *cache, Word shnum, const char *file, uint_t flags,
/* 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 @@ regular(const char *file, int fd, Elf *elf, uint_t flags,
size_t ndx, shstrndx, shnum, phnum;
Shdr *shdr;
Cache *cache;
- VERSYM_STATE versym;
+ VERSYM_STATE versym = { 0 };
int ret = 0;
int addr_align;
Please sign in to comment.
Something went wrong with that request. Please try again.