diff options
author | Rob Stacey <res@robostac.co.uk> | 2019-08-09 09:52:52 +0100 |
---|---|---|
committer | Rob Stacey <res@robostac.co.uk> | 2019-08-09 09:52:52 +0100 |
commit | 48aae39f2dddf43304769cd7f88390c51f395578 (patch) | |
tree | ff8cc717857f09c66789d306f5942422bd5010f4 | |
parent | af66ec677c40dfaed68a124d21dd59d5f8c63381 (diff) | |
download | barebox-48aae39f2dddf43304769cd7f88390c51f395578.tar.gz barebox-48aae39f2dddf43304769cd7f88390c51f395578.tar.xz |
IMX: do_hab calls strcat on uninitialised memory
-rw-r--r-- | scripts/imx/imx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/imx/imx.c b/scripts/imx/imx.c index f37f151acb..4f18d90d3a 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; } |