diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/isofs/inode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/isofs/inode.c b/fs/isofs/inode.c index 350f67fb5b9c..41ece64f1a34 100644 --- a/fs/isofs/inode.c +++ b/fs/isofs/inode.c @@ -1268,6 +1268,8 @@ static int isofs_read_inode(struct inode *inode, int relocated) de = (struct iso_directory_record *) (bh->b_data + offset); de_len = *(unsigned char *) de; + if (de_len < sizeof(struct iso_directory_record)) + goto fail; if (offset + de_len > bufsize) { int frag1 = bufsize - offset; |