]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
elf: Fix wrong break removal from 8ee878592c
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 7 Dec 2023 14:17:35 +0000 (11:17 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 5 Feb 2024 12:55:09 +0000 (09:55 -0300)
Reported-by: Alexander Monakov <amonakov@ispras.ru>
(cherry picked from commit 546a1ba664626603660b595662249d524e429013)

elf/readelflib.c

index c09425a5740bef8b0bab22368f136d1fe0d3a278..2c0bae9fc0047e8062eed1d2cf079c8bc00d0c85 100644 (file)
@@ -112,6 +112,7 @@ process_elf_file (const char *file_name, const char *lib, int *flag,
        case PT_INTERP:
          program_interpreter = (char *) (file_contents + segment->p_offset);
          check_ptr (program_interpreter);
+         break;
 
          /* Check if this is enough to classify the binary.  */
          for (j = 0; j < sizeof (interpreters) / sizeof (interpreters [0]);