isofs: Fix unchecked printing of ER records
commit09b5d759d0f67a0eaf96ef51d7b33b8d54b581d1
authorJan Kara <jack@suse.cz>
Thu, 18 Dec 2014 16:26:10 +0000 (18 17:26 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 24 May 2015 08:10:41 +0000 (24 10:10 +0200)
tree7bb350c14cf2e42f1908c46b557eb0ea7c98f3af
parent08313e26e06d4aa9ce1cbba1a8e359e9cab9ad56
isofs: Fix unchecked printing of ER records

commit 4e2024624e678f0ebb916e6192bd23c1f9fdf696 upstream

We didn't check length of rock ridge ER records before printing them.
Thus corrupted isofs image can cause us to access and print some memory
behind the buffer with obvious consequences.

Reported-and-tested-by: Carl Henrik Lunde <chlunde@ping.uio.no>
CC: stable@vger.kernel.org
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Willy Tarreau <w@1wt.eu>
fs/isofs/rock.c