summaryrefslogtreecommitdiff
path: root/include/mailbox-uclass.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2017-08-20 22:30:15 -0400
committerTom Rini <trini@konsulko.com>2017-08-26 14:56:13 -0400
commit10b078d83674ab0ced812da490f3c6d2261e1b79 (patch)
tree627a37e7d5fbd931f7b0766b7939c76c8bbc3ece /include/mailbox-uclass.h
parentbc028345acc44a4fe94fd0572ab0552bdfb7f810 (diff)
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>
Diffstat (limited to 'include/mailbox-uclass.h')
0 files changed, 0 insertions, 0 deletions