This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 57d521cc59 binfmt: Immediately exit from elf_loadbinary if elf format 
isn't supported
57d521cc59 is described below

commit 57d521cc59762afee6dba124fd08cff408110f75
Author: wanggang26 <wanggan...@xiaomi.com>
AuthorDate: Sun Jul 2 20:49:26 2023 +0800

    binfmt: Immediately exit from elf_loadbinary if elf format isn't supported
---
 binfmt/elf.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/binfmt/elf.c b/binfmt/elf.c
index 02bb603a7c..708b05afbd 100644
--- a/binfmt/elf.c
+++ b/binfmt/elf.c
@@ -277,6 +277,7 @@ static int elf_loadbinary(FAR struct binary_s *binp,
     {
       berr("Unexpected elf type %d\n", loadinfo.ehdr.e_type);
       ret = -ENOEXEC;
+      goto errout_with_load;
     }
 
   /* Return the load information */

Reply via email to