summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-07-16 16:15:59 +0300
committerTom Rini <trini@konsulko.com>2021-07-16 16:15:59 +0300
commitc39946a2e2d062025c9fc8b34587dfdd45fd8703 (patch)
tree30326b7ad7ab94a6c936506636cf93d63b300384 /arch
parentd0dab9336db08bf562dd7ded4a417efd8570cee7 (diff)
parent92cf458f8ad9410dedbedd41d048d26620ce5f12 (diff)
downloadu-boot-c39946a2e2d062025c9fc8b34587dfdd45fd8703.tar.xz
Merge branch '2021-07-15-assorted-fixes'
- Large number of Coverity reported issues addressed - m41t62 bugfix - Support more Android image compression formats - FIT + DTO bugfix
Diffstat (limited to 'arch')
-rw-r--r--arch/sandbox/cpu/state.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/sandbox/cpu/state.c b/arch/sandbox/cpu/state.c
index f63cfd38ee..a4d99bade4 100644
--- a/arch/sandbox/cpu/state.c
+++ b/arch/sandbox/cpu/state.c
@@ -78,6 +78,10 @@ static int state_read_file(struct sandbox_state *state, const char *fname)
err_read:
os_close(fd);
err_open:
+ /*
+ * tainted scalar, since size is obtained from the file. But we can rely
+ * on os_malloc() to handle invalid values.
+ */
os_free(state->state_fdt);
state->state_fdt = NULL;