From: Wolfgang Denk Date: Tue, 22 May 2012 10:14:14 +0200 Subject: [U-Boot] [PATCH] fat: fix FAT sector offsets overflow on large FAT partitions In-Reply-To: <1337448040-7902-1-git-send-email-agust@denx.de> References: <4FA1EAC5.8000003@cavium.com> <1337448040-7902-1-git-send-email-agust@denx.de> Message-ID: <20120522081415.00555200239@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Anatolij Gustschin, In message <1337448040-7902-1-git-send-email-agust@denx.de> you wrote: > From: Aaron Williams > > This patch fixes several issues where sector offsets can overflow due > to being limited to 16-bits. The cases where an overflow can happen > when accessing large FAT32 partitions are: > > - length of FAT in sectors > - start sector of root directory > - the sector of the first cluster > > These issues were observed when reading files from a 64GB FAT32 > filesystem. > > Signed-off-by: Aaron Williams > Tested-by: Anatolij Gustschin > Signed-off-by: Anatolij Gustschin > --- > include/fat.h | 6 +++--- > 1 files changed, 3 insertions(+), 3 deletions(-) Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de The face of war has never changed. Surely it is more logical to heal than to kill. -- Surak of Vulcan, "The Savage Curtain", stardate 5906.5