Revert "ubifs: Fix out-of-bounds memory access caused by abnormal value of node_len"
authorZhihao Cheng <chengzhihao1@huawei.com>
Tue, 16 Jun 2020 07:11:43 +0000 (15:11 +0800)
committerRichard Weinberger <richard@nod.at>
Sun, 13 Dec 2020 21:11:51 +0000 (22:11 +0100)
commitc8be097530a82e004f98378c3afc5cd35efc4f57
tree41a9fff4efb4f47d8df3bfed65c51af6c8700ad7
parentc4c0d19d39d26c5f58633f8fcca75f03b2854fc0
Revert "ubifs: Fix out-of-bounds memory access caused by abnormal value of node_len"

This reverts commit acc5af3efa30 ("ubifs: Fix out-of-bounds memory access caused by abnormal value of node_len")

No need to avoid memory oob in dumping for data node alone. Later, node
length will be passed into function 'ubifs_dump_node()' which replaces
all node dumping places.

Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/io.c