ufs_readdir() buffer was meant to be limited to 64kB; reversed test
authorguenther <guenther@openbsd.org>
Thu, 14 Jul 2016 03:34:28 +0000 (03:34 +0000)
committerguenther <guenther@openbsd.org>
Thu, 14 Jul 2016 03:34:28 +0000 (03:34 +0000)
commit14ec9cbc94f7a5c3ed77756f8d4cfae76bfc6a20
tree13fbd4eb6900c0675f109df16814284291f88d2d
parent8e9151d4be2cbbf2fcb4904ec47ae8b8f2e29304
ufs_readdir() buffer was meant to be limited to 64kB; reversed test
permitted very big mallocs to panic the kernel.

reported by Tim Newsham
ok millert@
sys/ufs/ufs/ufs_vnops.c