lkml.org 
[lkml]   [2008]   [Aug]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [Patch] Fix another bug in hfsplus when reading a corrupted image
Hi,

On Tue, 26 Aug 2008, Eric Sesterhenn wrote:

> Problem is that there is no ext_tree, causing the NULL-pointer
> dereference in hfsplus_init(). This fixes the issue by checking the ext_tree in
> hfsplus_get_block() and aborting early enoug.

The problem is worse, a corrupted extent for the extent file itself may
try to get an impossible extent, causing a deadlock if I see it correctly.
A better fix would be to check the inode number after the first_blocks
checks and fail if it's the extent file, as according to the spec the
extent file should have no extent for itself.

bye, Roman


\
 
 \ /
  Last update: 2008-08-29 04:39    [W:0.062 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site