]> git.proxmox.com Git - mirror_zfs.git/commit
Fix for recent zdb -h | -i crashes (seg fault)
authorDon Brady <don.brady@intel.com>
Wed, 24 Jun 2015 18:17:36 +0000 (12:17 -0600)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 26 Jun 2015 21:14:31 +0000 (14:14 -0700)
commit017da6f063861a1dc3eea5a41c3de8b879d579bd
tree15e4085a6663fccf2d4bdf0789952627f1ecb3ef
parent784652c1f034bf5bf25d22b5b4056a6955331734
Fix for recent zdb -h | -i crashes (seg fault)

Allocating SPA_MAXBLOCKSIZE on the stack is a bad idea (even with the
old 128K size). Use malloc instead when allocating temporary block
buffer memory.

Signed-off-by: Don Brady <don.brady@intel.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #3522
cmd/zdb/zdb.c
cmd/zdb/zdb_il.c