[U-Boot] [PATCH] fat: fix FAT sector offsets overflow on large FAT partitions

Wolfgang Denk wd at denx.de
Tue May 22 10:14:14 CEST 2012


Dear Anatolij Gustschin,

In message <1337448040-7902-1-git-send-email-agust at denx.de> you wrote:
> From: Aaron Williams <aaron.williams at caviumnetworks.com>
> 
> 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 <aaron.williams at caviumnetworks.com>
> Tested-by: Anatolij Gustschin <agust at denx.de>
> Signed-off-by: Anatolij Gustschin <agust at denx.de>
> ---
>  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


More information about the U-Boot mailing list