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 4e9702c7fb
commit 7b85272b08

View file

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