]> Git Repo - J-u-boot.git/commit
fs: ext4: Fix journal overrun issue reported by Coverity
authorTom Rini <[email protected]>
Mon, 21 Aug 2017 02:30:15 +0000 (22:30 -0400)
committerTom Rini <[email protected]>
Sat, 26 Aug 2017 18:56:13 +0000 (14:56 -0400)
commit10b078d83674ab0ced812da490f3c6d2261e1b79
tree627a37e7d5fbd931f7b0766b7939c76c8bbc3ece
parentbc028345acc44a4fe94fd0572ab0552bdfb7f810
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 <[email protected]>
Suggested-by: Stefan Brüns <[email protected]>
Reported-by: Coverity (CID: 165117, 165110)
Signed-off-by: Tom Rini <[email protected]>
Reviewed-by: Stefan Brüns <[email protected]>
fs/ext4/ext4_journal.c
This page took 0.033795 seconds and 4 git commands to generate.