binfmt/exec: initialize binary_s to empty to avoid invaild access
Signed-off-by: chao an <anchao@lixiang.com>
This commit is contained in:
parent
4e9702c7fb
commit
7b85272b08
1 changed files with 1 additions and 0 deletions
|
@ -88,6 +88,7 @@ static int exec_internal(FAR const char *filename,
|
||||||
struct binary_s sbin;
|
struct binary_s sbin;
|
||||||
|
|
||||||
bin = &sbin;
|
bin = &sbin;
|
||||||
|
memset(bin, 0, sizeof(*bin));
|
||||||
#else
|
#else
|
||||||
|
|
||||||
/* Allocate the load information */
|
/* Allocate the load information */
|
||||||
|
|
Loading…
Reference in a new issue