binfmt/exec: initialize binary_s to empty to avoid invaild access

Signed-off-by: chao an <anchao@lixiang.com>
This commit is contained in:
chao an 2024-12-12 22:26:16 +08:00 committed by Xiang Xiao
parent c6dfdbad41
commit 200015d514

View file

@ -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 */