Ocean Chen 56f3ce6751 f2fs: avoid out-of-range memory access
blkoff_off might over 512 due to fs corrupt or security
vulnerability. That should be checked before being using.

Use ENTRIES_IN_SUM to protect invalid value in cur_data_blkoff.

Signed-off-by: Ocean Chen <oceanchen@google.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2019-07-10 18:13:53 -07:00
..
2019-05-01 22:43:23 -04:00
2019-05-07 20:51:58 -07:00
2019-05-01 22:43:23 -04:00
2019-05-01 22:43:24 -04:00
2019-05-07 18:14:36 -07:00
2019-05-01 22:43:26 -04:00
2019-05-01 22:43:24 -04:00
\n
2019-05-13 14:59:55 -07:00
2019-05-01 22:43:24 -04:00
2019-05-14 08:59:14 -07:00
2019-05-01 22:43:24 -04:00
2019-05-01 22:43:24 -04:00
2019-05-01 22:43:24 -04:00
2019-05-01 22:43:24 -04:00
2019-05-07 11:37:27 -07:00
2019-05-01 22:43:25 -04:00
2019-05-09 14:33:15 -07:00
2019-05-09 14:33:15 -07:00
2019-05-01 22:43:25 -04:00
\n
2019-05-13 15:08:16 -07:00
2019-05-01 22:43:26 -04:00
2019-05-14 09:02:14 -07:00
2019-05-01 22:43:25 -04:00
2019-05-01 22:43:25 -04:00
\n
2019-05-13 14:59:55 -07:00
2019-05-01 22:43:25 -04:00
\n
2019-05-13 14:59:55 -07:00
2019-05-07 18:14:36 -07:00
2018-10-29 14:29:58 -07:00
2019-05-14 09:47:48 -07:00
2019-03-07 18:32:01 -08:00
2019-04-08 18:21:02 -05:00
2019-03-08 14:48:40 -08:00
2019-05-07 18:14:36 -07:00
2019-01-30 17:44:07 -05:00
2019-04-09 19:20:57 -04:00
2019-04-26 11:09:55 -07:00
2019-04-06 10:48:35 -06:00
2019-02-07 16:38:35 +01:00