diff options
author | Doug Graham <[email protected]> | 2009-09-22 16:48:00 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2009-09-23 07:39:57 -0700 |
commit | 9f6c1333938c5d93da8be8f29f3b5469a3c00f95 (patch) | |
tree | a0fdd0e3baffa1a997eb39f780b893337921a1d4 /scripts/basic/docproc.c | |
parent | 532f649f148bf70e6a5816d95fe55e6a065e8754 (diff) |
V3 minixfs: add missing directory type checking
There are a few places in the Minix FS code where the "inode" field of a
minix_dir_entry is used without checking first to see if the dirent is
really a minix3_dir_entry. The inode number in a V1/V2 dirent is 16 bits,
whereas that in a V3 dirent is 32 bits.
Accessing it as a 16 bit field when it really should be accessed as a 32
bit field probably kinda sorta works on a little-endian machine, but leads
to some rather odd behaviour on big-endian machines.
[[email protected]: coding-style fixes]
Signed-off-by: Doug Graham <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/basic/docproc.c')
0 files changed, 0 insertions, 0 deletions