summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPatrick Wildt <[email protected]>2018-11-26 15:56:57 +0100
committerTom Rini <[email protected]>2018-12-06 23:26:31 -0500
commitcd80a4fe611d7cb4153a6ed39d1e5052c702fb12 (patch)
treebb1f596d2c8e74a0744c6999159ab293cf07a50a /include
parent16462a35728039aa173a02982643c551dc94ba20 (diff)
fs: check FAT cluster size
The cluster size specifies how many sectors make up a cluster. A cluster size of zero makes no sense, as it would mean that the cluster is made up of no sectors. This will later lead into a division by zero in sect_to_clust(), so better take care of that early. The MAX_CLUSTSIZE define can reduced using a define to make some room in low-memory system. Unfortunately if the code reads a filesystem with a bigger cluster size it will overflow the buffer. Signed-off-by: Patrick Wildt <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions