u-boot-brain/lib
Sean Anderson 89be8e31cc fastboot: Fix overflow when calculating chunk size
If a chunk was larger than 4GiB, then chunk_data_sz would overflow and
blkcnt would not be calculated correctly. Upgrade it to a u64 and cast
its multiplicands as well. Also fix bytes_written while we're at it.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
2021-06-01 16:48:54 -04:00
..
acpi common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
aes fit: cipher: aes: allow to store the IV in the FIT image 2020-10-12 21:30:37 -04:00
at91
bzip2
crypto lib: Rename rsa-checksum.c to hash-checksum.c 2021-04-14 15:06:08 -04:00
dhry
ecdsa lib/ecdsa: Use the 'keydir' argument from mkimage if appropriate 2021-04-14 15:23:01 -04:00
efi common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
efi_driver dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
efi_loader efi_loader: add PE/COFF image measurement 2021-05-28 16:17:01 +02:00
efi_selftest efi_selftest: compiler flags for efi_selftest_miniapp_exception.o 2021-05-24 14:21:30 -04:00
libavb
libfdt
lzma
lzo
optee lib: optee: migration optee_copy_fdt_nodes for OF_LIVE support 2021-04-12 14:25:31 -04:00
rsa lib/rsa: Use EVP_PKEY instead of RSA 2021-04-14 17:45:04 -04:00
tizen
zlib common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
zstd
.gitignore
addr_map.c lib: addr_map: Move address_map[] type to the header file 2021-03-05 10:25:43 +05:30
aes.c lib: aes: build failure with DEBUG=1 2021-01-16 19:17:11 -05:00
asm-offsets.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
asn1_decoder.c
bch.c
binman.c binman: Show a message when changing subnodes 2021-03-27 15:04:31 +13:00
bitrev.c
charset.c lib/charset: UTF-8 stream conversion 2021-03-07 17:37:13 +01:00
circbuf.c
crc7.c
crc8.c
crc16.c
crc32.c lib: crc32: put the crc_table variable into efi_runtime_rodata section 2021-05-24 14:21:30 -04:00
crc32c.c
ctype.c
date.c
display_options.c display_options: Use USE_TINY_PRINTF for SPL check 2021-01-27 17:03:16 -05:00
div64.c
elf.c
errno_str.c
errno.c sandbox: errno: avoid conflict with libc's errno 2021-05-24 14:21:30 -04:00
fdt-libcrypto.c lib/rsa: Make fdt_add_bignum() available outside of RSA code 2021-04-14 15:06:08 -04:00
fdtdec_common.c
fdtdec_test.c
fdtdec.c dm: core: Add address translation in fdt_get_resource 2021-04-29 03:23:39 -07:00
getopt.c lib: Add getopt 2020-10-30 10:56:11 -04:00
gunzip.c
gzip.c
hang.c
hash-checksum.c lib: Rename rsa-checksum.c to hash-checksum.c 2021-04-14 15:06:08 -04:00
hashtable.c env: Allow returning errors from hdelete_r() 2020-12-04 16:09:06 -05:00
hexdump.c
image-sparse.c fastboot: Fix overflow when calculating chunk size 2021-06-01 16:48:54 -04:00
Kconfig Revert "lib: introduce HASH_CALCULATE option" 2021-05-28 16:17:01 +02:00
ldiv.c
linux_compat.c
linux_string.c
list_sort.c
lmb.c lmb: Add 2 config to define the max number of regions 2021-04-22 14:09:45 -04:00
lz4_wrapper.c lz4: Fix unaligned accesses 2021-04-20 07:31:12 -04:00
lz4.c
Makefile efi_loader: Work-around build issue due to missing hash_calculate() 2021-05-28 16:17:01 +02:00
md5.c
membuff.c
net_utils.c
of_live.c
oid_registry.c
panic.c
physmem.c
qsort.c
rand.c
rbtree.c
rc4.c
sha1.c
sha256.c
sha512.c lib: sha512: include "compiler.h" 2021-02-24 16:51:49 -05:00
slre.c
smbios-parser.c smbios: Allow writing to the coreboot version string 2021-03-27 13:59:37 +13:00
smbios.c smbios: Allow writing to the coreboot version string 2021-03-27 13:59:37 +13:00
sscanf.c xen: Code style conformity 2020-08-24 14:11:31 -04:00
string.c string: make memcpy(), memset(), memcmp() and memmove() visible for LTO 2021-05-24 14:21:30 -04:00
strto.c
tables_csum.c
time.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
tiny-printf.c
tpm_api.c tpm: Add TPM2 support for write_lock 2021-03-02 15:53:37 -05:00
tpm-common.c tpm: Add debugging of request in tpm_sendrecv_command() 2021-03-02 15:53:37 -05:00
tpm-utils.h
tpm-v1.c tpm: Switch TPMv1 over to use the new API 2021-03-02 15:53:37 -05:00
tpm-v2.c tpm: Allow disabling platform hierarchy with TPM2 2021-03-02 15:53:37 -05:00
trace.c treewide: Convert macro and uses of __section(foo) to __section("foo") 2021-05-24 14:21:30 -04:00
uuid.c lib: uuid: use RNG device if present 2021-01-19 09:15:02 -05:00
vsprintf.c
xxhash.c