Skip to content

Commit

Permalink
binfmt/exec: initialize binary_s to empty to avoid invaild access
Browse files Browse the repository at this point in the history
Signed-off-by: chao an <anchao@lixiang.com>
  • Loading branch information
anchao authored and xiaoxiang781216 committed Dec 13, 2024
1 parent c6dfdba commit 200015d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions binfmt/binfmt_exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 200015d

Please sign in to comment.