diff options
Diffstat (limited to 'libelf/gelf_getsyminfo.c')
| -rw-r--r-- | libelf/gelf_getsyminfo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libelf/gelf_getsyminfo.c b/libelf/gelf_getsyminfo.c index 09c9cee0..1b75cb86 100644 --- a/libelf/gelf_getsyminfo.c +++ b/libelf/gelf_getsyminfo.c @@ -1,5 +1,5 @@ /* Get additional symbol information from symbol table at the given index. - Copyright (C) 2000, 2001, 2002 Red Hat, Inc. + Copyright (C) 2000-2009 Red Hat, Inc. This file is part of elfutils. Written by Ulrich Drepper <[email protected]>, 2000. @@ -63,7 +63,7 @@ gelf_getsyminfo (data, ndx, dst) /* The data is already in the correct form. Just make sure the index is OK. */ - if (unlikely ((ndx + 1) * sizeof (GElf_Syminfo) > data->d_size)) + if (INVALID_NDX (ndx, GElf_Syminfo, data)) { __libelf_seterrno (ELF_E_INVALID_INDEX); goto out; |
