From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Sat, 26 Aug 2017 16:46:57 -0400 Subject: [U-Boot] fs: ext4: Fix journal overrun issue reported by Coverity In-Reply-To: <1503282615-30802-1-git-send-email-trini@konsulko.com> References: <1503282615-30802-1-git-send-email-trini@konsulko.com> Message-ID: <20170826204657.GP2827@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de On Sun, Aug 20, 2017 at 10:30:15PM -0400, 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_block_tag *)(p_jdb + ofs); > > Cc: Stefan Brüns > Suggested-by: Stefan Brüns > Reported-by: Coverity (CID: 165117, 165110) > Signed-off-by: Tom Rini > Reviewed-by: Stefan Brüns Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: