aboutsummaryrefslogtreecommitdiff
path: root/libbb/inet_common.c
diff options
context:
space:
mode:
authorThomas Frauendorfer <tf@miray.de>2019-03-05 17:04:34 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2019-03-15 09:57:24 +0100
commit2bbd1e1e8ababc480ff5d373847ab98ba0cc23dd (patch)
treee799612ffde8f738f127db38aaa728a7a3616617 /libbb/inet_common.c
parent0ddc742c04538fdd8be51fb1d4dbcbd4309952db (diff)
downloadbusybox-2bbd1e1e8ababc480ff5d373847ab98ba0cc23dd.tar.gz
Fix off by one error in FAT16 <=> FAT32 detection
cluster_count is compared against FAT16_MAX, which is defined as 0xfff4 That is the maximum number of cluster a FAT16 can have. For reference also check the hardware whitepaper from Microsoft FAT: General Overview of On-Disk Format, version 1.03 page 15 Signed-off-by: Thomas Frauendorfer <tf@miray.de> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/inet_common.c')
0 files changed, 0 insertions, 0 deletions