diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2022-06-08 09:51:14 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2022-06-08 09:53:51 +0200 |
commit | f79d2b21614f11ea9f99dc5a3155d23439cec773 (patch) | |
tree | c7ee4fdccd81426244573578752f25cd1a274b4c /ubifs-utils/mkfs.ubifs/hashtable/hashtable.c | |
parent | e62ea740c5e4edb37065193c400a3a82d5479c15 (diff) |
mtd-utils: nanddump: fix writing big images on 32bit machines
When writing a full 4GiB NAND to a file end_addr becomes 0x100000000.
With that writing out the first page to the file doesn't happen
because size_left is calculated to 0x100000000 - 0 = 0x100000000
which is then truncated to 32bit and becomes zero. Fix this by
using an appropriate 64bit type for size_left.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'ubifs-utils/mkfs.ubifs/hashtable/hashtable.c')
0 files changed, 0 insertions, 0 deletions