projects
/
project
/
procd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7740328
)
ujail: DT_STRTAB uses d_ptr in d_un union (not d_val)
author
Etienne CHAMPETIER
<champetier.etienne@gmail.com>
Fri, 27 Nov 2015 16:27:13 +0000
(16:27 +0000)
committer
John Crispin
<blogic@openwrt.org>
Fri, 27 Nov 2015 16:48:49 +0000
(17:48 +0100)
see
https://docs.oracle.com/cd/E19683-01/817-3677/chapter6-42444/index.html
Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
jail/elf.c
patch
|
blob
|
history
diff --git
a/jail/elf.c
b/jail/elf.c
index 7c52880c16eea765cc4e4fdeed2cc608ff86957d..46c19df728ef5654b0c6ada58087d1a69ebeeed1 100644
(file)
--- a/
jail/elf.c
+++ b/
jail/elf.c
@@
-182,7
+182,7
@@
static int elf32_scan_dynamic(const char *map, int dyn_offset, int dyn_size, int
if (curr->d_tag != DT_STRTAB)
continue;
- strtab = map + (curr->d_un.d_
val
- load_offset);
+ strtab = map + (curr->d_un.d_
ptr
- load_offset);
break;
}
@@
-216,7
+216,7
@@
static int elf64_scan_dynamic(const char *map, int dyn_offset, int dyn_size, int
if (curr->d_tag != DT_STRTAB)
continue;
- strtab = map + (curr->d_un.d_
val
- load_offset);
+ strtab = map + (curr->d_un.d_
ptr
- load_offset);
break;
}