Commit 34ea9d86 authored by Linus Torvalds's avatar Linus Torvalds

isofs: more "corrupted iso image" error cases

Thanks to Michal Zalewski for testing.
parent 63c0f261
......@@ -685,6 +685,8 @@ static int isofs_fill_super(struct super_block *s, void *data, int silent)
sbi->s_log_zone_size = isonum_723 (h_pri->logical_block_size);
sbi->s_max_size = isonum_733(h_pri->volume_space_size);
} else {
if (!pri)
goto out_freebh;
rootp = (struct iso_directory_record *) pri->root_directory_record;
sbi->s_nzones = isonum_733 (pri->volume_space_size);
sbi->s_log_zone_size = isonum_723 (pri->logical_block_size);
......@@ -1395,6 +1397,9 @@ struct inode *isofs_iget(struct super_block *sb,
struct inode *inode;
struct isofs_iget5_callback_data data;
if (offset >= 1ul << sb->s_blocksize_bits)
return NULL;
data.block = block;
data.offset = offset;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment