summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Stacey <res@robostac.co.uk>2019-08-09 09:52:52 +0100
committerRob Stacey <res@robostac.co.uk>2019-08-09 09:52:52 +0100
commit48aae39f2dddf43304769cd7f88390c51f395578 (patch)
treeff8cc717857f09c66789d306f5942422bd5010f4
parentaf66ec677c40dfaed68a124d21dd59d5f8c63381 (diff)
downloadbarebox-48aae39f2dddf43304769cd7f88390c51f395578.tar.gz
IMX: do_hab calls strcat on uninitialised memory
-rw-r--r--scripts/imx/imx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/imx/imx.c b/scripts/imx/imx.c
index f37f151..4f18d90 100644
--- a/scripts/imx/imx.c
+++ b/scripts/imx/imx.c
@@ -310,7 +310,7 @@ static int do_hab(struct config_data *data, int argc, char *argv[])
if (!data->csf) {
data->csf_space = 0x10000;
- data->csf = malloc(data->csf_space + 1);
+ data->csf = calloc(data->csf_space + 1, 1);
if (!data->csf)
return -ENOMEM;
}