Re: [U-Boot] [PATCH] fs: ext4: Fix journal overrun issue reported by Coverity

2017-08-22 Thread Brüns , Stefan
On Montag, 21. August 2017 04:30:15 CEST Tom Rini wrote: > 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

[U-Boot] [PATCH] fs: ext4: Fix journal overrun issue reported by Coverity

2017-08-20 Thread Tom Rini
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 Suggested-by: Stefan