lkml.org 
[lkml]   [2001]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectRe: vfat: attempt to access beyond end of device
From
Date
Hi, 

This bug will be fixed by the following change.

diff -urN linux-2.4.7-pre6.orig/fs/fat/inode.c linux-2.4.7-pre6/fs/fat/inode.c
--- linux-2.4.7-pre6.orig/fs/fat/inode.c Tue Jun 12 11:15:27 2001
+++ linux-2.4.7-pre6/fs/fat/inode.c Fri Jul 13 04:20:04 2001
@@ -842,7 +842,7 @@
struct super_block *sb = inode->i_sb;
struct buffer_head *bh;
struct msdos_dir_entry *raw_entry;
- int i_pos;
+ unsigned int i_pos;

retry:
i_pos = MSDOS_I(inode)->i_location;

But, should change ino/i_location/i_pos to unsigned long in
fat/vfat/msdos/umsdos, IMHO.

Thanks.
--
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:57    [W:0.079 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site