aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-05-25 21:58:03 +0000
committerMike Frysinger <vapier@gentoo.org>2005-05-25 21:58:03 +0000
commit8da766ba0d5fd302a4f1ff1132c61fdb23852f2c (patch)
tree86bafe6e1d0a2fa842c8fa78615ec12b04d4ddca /paxelf.c
parentmake sure -F disables -b too (diff)
downloadpax-utils-8da766ba0d5fd302a4f1ff1132c61fdb23852f2c.tar.gz
pax-utils-8da766ba0d5fd302a4f1ff1132c61fdb23852f2c.tar.bz2
pax-utils-8da766ba0d5fd302a4f1ff1132c61fdb23852f2c.zip
make sure we use EGET() when accessing elf members
Diffstat (limited to 'paxelf.c')
-rw-r--r--paxelf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/paxelf.c b/paxelf.c
index 1a121d7..99f9d52 100644
--- a/paxelf.c
+++ b/paxelf.c
@@ -2,7 +2,7 @@
* Copyright 2003 Ned Ludd <solar@gentoo.org>
* Copyright 1999-2005 Gentoo Foundation
* Distributed under the terms of the GNU General Public License v2
- * $Header: /var/cvsroot/gentoo-projects/pax-utils/paxelf.c,v 1.20 2005/05/19 22:16:27 vapier Exp $
+ * $Header: /var/cvsroot/gentoo-projects/pax-utils/paxelf.c,v 1.21 2005/05/25 21:58:03 vapier Exp $
*
********************************************************************
* This program is free software; you can redistribute it and/or
@@ -474,7 +474,7 @@ void *elf_findsecbyname(elfobj *elf, const char *name)
if (shstrndx >= shnum) return NULL; \
strtbl = &(shdr[shstrndx]); \
for (i = 0; i < shnum; ++i) { \
- if (shdr[i].sh_offset >= elf->len - ehdr->e_shentsize) continue; \
+ if (EGET(shdr[i].sh_offset) >= elf->len - EGET(ehdr->e_shentsize)) continue; \
offset = EGET(strtbl->sh_offset) + EGET(shdr[i].sh_name); \
if (offset >= elf->len) continue; \
shdr_name = (char*)(elf->data + offset); \