Re: [PATCH v2 1/2] btrfs-progs: dump-super: check array_size in print_sys_chunk_array

2017-04-20 Thread David Sterba
On Thu, Apr 20, 2017 at 04:07:56PM +0800, Lu Fengqi wrote: > Without validation of array_size, the dump-super may lead to a bad > memory access. > > Signed-off-by: Lu Fengqi 1-2 applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs"

[PATCH v2 1/2] btrfs-progs: dump-super: check array_size in print_sys_chunk_array

2017-04-20 Thread Lu Fengqi
Without validation of array_size, the dump-super may lead to a bad memory access. Signed-off-by: Lu Fengqi --- v2: Accept David's advice, no longer use BTRFS_SUPER_INFO_SIZE instead of sizeof(*sb). --- cmds-inspect-dump-super.c | 11 +-- 1 file