diff options
author | Lennart Poettering <lennart@poettering.net> | 2006-08-15 23:53:14 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2006-08-15 23:53:14 +0200 |
commit | aa9a49b4b39bfaa465ae9d0f6ac4621cd519b719 (patch) | |
tree | bc684323064fae1ffe7e1a24047fa4549c0c799d /extras | |
parent | 226b96927176ff8db3bc0519a661220b1b980a55 (diff) |
volume_id: fix fat32 cluster chain traversal
Diffstat (limited to 'extras')
-rw-r--r-- | extras/volume_id/lib/Makefile | 2 | ||||
-rw-r--r-- | extras/volume_id/lib/fat.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/extras/volume_id/lib/Makefile b/extras/volume_id/lib/Makefile index e5fd5fcddd..e93f8b5af5 100644 --- a/extras/volume_id/lib/Makefile +++ b/extras/volume_id/lib/Makefile @@ -13,7 +13,7 @@ INSTALL_DATA = ${INSTALL} -m 644 INSTALL_LIB = ${INSTALL} -m 755 SHLIB_CUR = 0 -SHLIB_REV = 69 +SHLIB_REV = 70 SHLIB_AGE = 0 SHLIB = libvolume_id.so.$(SHLIB_CUR).$(SHLIB_REV).$(SHLIB_AGE) diff --git a/extras/volume_id/lib/fat.c b/extras/volume_id/lib/fat.c index 92f316a275..9a2e4784d8 100644 --- a/extras/volume_id/lib/fat.c +++ b/extras/volume_id/lib/fat.c @@ -349,7 +349,7 @@ fat32: /* set next cluster */ next = le32_to_cpu(*((uint32_t *) buf)) & 0x0fffffff; - if (next == 0) + if (next < 2 || next >= 0x0ffffff0) break; } if (maxloop == 0) |