From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Fri, 7 Dec 2018 15:32:50 -0500 Subject: [U-Boot] fs: check FAT cluster size In-Reply-To: <20181126145657.GA28354@nyx.local> References: <20181126145657.GA28354@nyx.local> Message-ID: <20181207203250.GX14374@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 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: