← Commit list

2bbd1e1e8

Thomas Frauendorfer
Thomas Frauendorfer
2019-03-15
SUCCESS Duration: 148s

Subject

Fix off by one error in FAT16 <=> FAT32 detection

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

util-linux/volume_id/fat.c+1 -1
@@ -247,7 +247,7 @@ int FAST_FUNC volume_id_probe_vfat(struct volume_id *id /*,uint64_t fat_partitio
// strcpy(id->type_version, "FAT32");
// goto fat32;
// }
- if (cluster_count >= FAT16_MAX)
+ if (cluster_count > FAT16_MAX)
goto fat32;
/* the label may be an attribute in the root directory */