]> granicus.if.org Git - zfs/commit
zdb: segfault in dump_bpobj_subobjs()
authorTim Chase <tim@onlight.com>
Fri, 9 Oct 2015 18:28:12 +0000 (13:28 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 13 Oct 2015 16:56:51 +0000 (09:56 -0700)
commit2986b3fd2587b1da5b6047a5c0b6bbb0b6d9c47e
tree40177ac5ab8fbd77702ba54c82d23f2ab4c388f8
parent385f9691c46811e5e04626ef879bf7061a4009ed
zdb: segfault in dump_bpobj_subobjs()

Avoid buffer overrun on all-zero bpobj subobjects by using signed
array index.  Also fix the type cast on the printf() argument.

Signed-off-by: Tim Chase <tim@onlight.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #3905
cmd/zdb/zdb.c