about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-12-07 11:17:35 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-02-05 09:55:09 -0300
commit62ac4b09c4ee66c91478212359b8ac44b4f6a9e2 (patch)
treeada0cfd3b73fc4d9873a0f1572ada0a2d8d528ed
parenta08677d389924c1bccf640f650f5f121abf90cd5 (diff)
downloadglibc-62ac4b09c4ee66c91478212359b8ac44b4f6a9e2.tar.gz
glibc-62ac4b09c4ee66c91478212359b8ac44b4f6a9e2.tar.xz
glibc-62ac4b09c4ee66c91478212359b8ac44b4f6a9e2.zip
elf: Fix wrong break removal from 8ee878592c
Reported-by: Alexander Monakov <amonakov@ispras.ru>
(cherry picked from commit 546a1ba664626603660b595662249d524e429013)
-rw-r--r--elf/readelflib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/elf/readelflib.c b/elf/readelflib.c
index c09425a574..2c0bae9fc0 100644
--- a/elf/readelflib.c
+++ b/elf/readelflib.c
@@ -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]);