Skip to content
Snippets Groups Projects
Commit 1d90c3b4 authored by Aaron Williams's avatar Aaron Williams Committed by Wolfgang Denk
Browse files

fat: fix FAT sector offsets overflow on large FAT partitions


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: default avatarAaron Williams <aaron.williams@caviumnetworks.com>
Tested-by: default avatarAnatolij Gustschin <agust@denx.de>
Signed-off-by: default avatarAnatolij Gustschin <agust@denx.de>
parent a075a79f
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment