u-boot-brain/fs
Tom Rini 10b078d836 fs: ext4: Fix journal overrun issue reported by Coverity
While &p_jdb[fs->blksz] is a valid expression (it points *one* char
sized element past the end of the array, e.g. &p_jdb[fs->blksz + 1] is
invalid (according to the C standard (C99/C11)).

Changing this to tag = (struct ext3_journal_block_tag *)(p_jdb + ofs);

Cc: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Suggested-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Reported-by: Coverity (CID: 165117, 165110)
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
2017-08-26 14:56:13 -04:00
..
cbfs fs: Kconfig: Add a separate config for FS_CBFS 2017-04-30 13:40:57 -04:00
cramfs fs: Kconfig: Add a separate option for FS_CRAMFS 2017-04-30 13:40:59 -04:00
ext4 fs: ext4: Fix journal overrun issue reported by Coverity 2017-08-26 14:56:13 -04:00
fat fs: fat: fix fatwrite overflow calculation 2017-08-26 14:56:07 -04:00
jffs2 fs: use get_nand_dev_by_index() 2017-07-11 22:41:47 -04:00
reiserfs dm: Drop the block_dev_desc_t typedef 2016-03-14 15:34:50 -06:00
sandbox sandboxfs: Fix resource leak 2016-12-02 10:37:47 -07:00
ubifs env: Rename common functions related to setenv() 2017-08-16 08:23:32 -04:00
yaffs2 Convert CONFIG_CMD_YAFFS2 to Kconfig 2017-08-11 17:44:50 -04:00
zfs dm: Drop the block_dev_desc_t typedef 2016-03-14 15:34:50 -06:00
Kconfig Convert CONFIG_CMD_YAFFS2 to Kconfig 2017-08-11 17:44:50 -04:00
Makefile fs: Kconfig: Add a separate option for FS_JFFS2 2017-05-22 12:45:31 -04:00
fs.c env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00