gcl.git - GNU Common Lisp

index : gcl.git
GNU Common Lisp
summary refs log tree commit diff
diff options
context:
space:
mode:
authorCamm Maguire <camm@debian.org>2013年11月01日 15:01:55 +0000
committerCamm Maguire <camm@debian.org>2013年11月05日 17:45:35 +0000
commit315b4e4f1c7e29fa7a3ac546b19856eccfa9bcc1 (patch)
tree9bfd0e4b6f70a358c321216e950fe28762749c9b
parentaa6a9ee235f7f104000b4fd0315d32ad7b5f2815 (diff)
downloadgcl-315b4e4f1c7e29fa7a3ac546b19856eccfa9bcc1.tar.gz
guard against 0 section numbers in data relocation copy of unexec
Diffstat
-rwxr-xr-xgcl/o/unexelf.c 2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcl/o/unexelf.c b/gcl/o/unexelf.c
index 07cbf680b..2effac393 100755
--- a/gcl/o/unexelf.c
+++ b/gcl/o/unexelf.c
@@ -1244,7 +1244,7 @@ unexec (char *new_name, char *old_name, unsigned int data_start, unsigned int bs
/* This code handles two different size structs, but there should
be no harm in that provided that r_offset is always the first
member. */
- nn = section.sh_info;
+ if (!(nn = section.sh_info)) break;
if (!strcmp (old_section_names + NEW_SECTION_H (nn).sh_name, ".data")
|| !strcmp ((old_section_names + NEW_SECTION_H (nn).sh_name),
".sdata")
generated by cgit v1.2.3 (git 2.25.1) at 2025年09月03日 23:08:46 +0000

AltStyle によって変換されたページ (->オリジナル) /