1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-23 17:34:00 +03:00

volume_id: fix fat32 cluster chain traversal

This commit is contained in:
Lennart Poettering 2006-08-15 23:53:14 +02:00 committed by Kay Sievers
parent 226b969271
commit aa9a49b4b3
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)