From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] fs: check FAT cluster size
Date: Fri, 7 Dec 2018 15:32:50 -0500 [thread overview]
Message-ID: <20181207203250.GX14374@bill-the-cat> (raw)
In-Reply-To: <20181126145657.GA28354@nyx.local>
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@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>
prev parent reply other threads:[~2018-12-07 20:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-26 14:56 [U-Boot] [PATCH] fs: check FAT cluster size Patrick Wildt
2018-12-07 20:32 ` Tom Rini [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181207203250.GX14374@bill-the-cat \
--to=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox