Xin LI
d3dd66792b
Correct off-by-two issue when determining FAT type.
...
In the code we used NumClusters as the upper (non-inclusive) boundary
of valid cluster number, so the actual value was 2 (CLUST_FIRST) more
than the real number of clusters. This causes a FAT16 media with
65524 clusters be treated as FAT32 and might affect FAT12 media with
4084 clusters as well.
To fix this, we increment NumClusters by CLUST_FIRST after the type
determination.
PR: 243179
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D23082
2020-01-11 17:41:20 +00:00
..
2020-01-02 18:46:33 +00:00
2019-08-13 20:06:55 +00:00
2019-12-21 02:44:00 +00:00
2018-11-13 21:40:56 +00:00
2019-11-21 01:24:49 +00:00
2019-11-21 01:24:49 +00:00
2019-10-18 12:32:01 +00:00
2019-05-23 20:12:24 +00:00
2019-12-18 18:43:44 +00:00
2018-08-22 15:55:23 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2019-06-14 06:10:15 +00:00
2019-12-11 17:37:53 +00:00
2019-06-28 22:12:43 +00:00
2019-08-13 20:06:55 +00:00
2018-11-13 21:40:56 +00:00
2019-12-22 05:44:29 +00:00
2019-12-24 23:03:12 +00:00
2020-01-11 17:41:20 +00:00
2019-02-25 21:58:19 +00:00
2019-12-13 04:12:13 +00:00
2019-02-11 00:11:02 +00:00
2019-12-16 21:06:24 +00:00
2019-09-06 15:01:47 +00:00
2018-12-06 00:09:39 +00:00
2019-12-22 01:22:51 +00:00
2020-01-09 14:58:41 +00:00
2019-10-03 11:23:10 +00:00
2019-06-27 12:37:44 +00:00
2019-11-30 05:57:54 +00:00
2019-08-08 20:56:52 +00:00
2018-08-09 11:46:12 +00:00
2019-04-19 06:49:46 +00:00
2018-12-21 08:15:31 +00:00
2019-11-01 03:10:53 +00:00
2019-09-23 04:28:07 +00:00
2018-08-11 08:34:24 +00:00
2019-12-07 15:17:00 +00:00
2018-10-27 16:41:34 +00:00
2019-12-26 22:33:20 +00:00
2019-08-07 16:56:00 +00:00
2019-12-08 01:20:37 +00:00
2019-09-05 14:15:47 +00:00
2019-09-05 14:15:47 +00:00
2020-01-06 01:51:23 +00:00
2019-12-14 02:03:47 +00:00
2019-02-01 00:34:18 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2018-12-06 00:09:39 +00:00
2019-09-05 14:08:45 +00:00
2019-11-21 01:24:49 +00:00
2019-02-07 14:40:28 +00:00
2018-08-11 16:12:23 +00:00
2019-01-10 00:10:12 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2019-09-05 14:15:47 +00:00
2019-08-13 20:06:55 +00:00
2019-12-09 07:18:40 +00:00
2019-02-24 18:47:04 +00:00
2019-03-02 21:22:56 +00:00
2018-09-13 13:57:42 +00:00
2019-02-26 06:17:23 +00:00
2019-06-25 04:50:09 +00:00