mirror of
https://github.com/apache/nuttx.git
synced 2025-05-08 22:32:04 +08:00
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
@ -88,6 +88,7 @@ static int exec_internal(FAR const char *filename,
|
||||
struct binary_s sbin;
|
||||
|
||||
bin = &sbin;
|
||||
memset(bin, 0, sizeof(*bin));
|
||||
#else
|
||||
|
||||
/* Allocate the load information */
|
||||
|
Loading…
x
Reference in New Issue
Block a user