[U-Boot] fs: check FAT cluster size
Tom Rini
trini at konsulko.com
Fri Dec 7 20:32:50 UTC 2018
On Mon, Nov 26, 2018 at 03:56:57PM +0100, Patrick Wildt wrote:
> 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 <patrick at blueri.se>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181207/beadf5ba/attachment.sig>
More information about the U-Boot
mailing list