From: Maciej W. Rozycki Date: Thu, 23 Feb 2017 18:16:55 +0000 (+0000) Subject: readelf: Make version section index sum unsigned X-Git-Tag: gdb-8.0-release~543 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5235cd686141bb5adb57dbbf302a168e9693672b;p=external%2Fbinutils.git readelf: Make version section index sum unsigned Make `isum' unsigned like data it is calculated from. binutils/ * readelf.c (process_version_sections) : Make `isum' unsigned. : Likewise. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index a528db4..1ab1c2c 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,5 +1,11 @@ 2017-02-24 Maciej W. Rozycki + * readelf.c (process_version_sections) : Make + `isum' unsigned. + : Likewise. + +2017-02-24 Maciej W. Rozycki + * readelf.c (process_version_sections) : Limit the number of entries processed by the section size. Don't break out of the loop if `ent.vd_next' is 0. diff --git a/binutils/readelf.c b/binutils/readelf.c index cb0da10..6edb364 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -10026,8 +10026,8 @@ process_version_sections (FILE * file) Elf_Internal_Verdef ent; Elf_External_Verdaux * eaux; Elf_Internal_Verdaux aux; + unsigned int isum; int j; - int isum; /* Check for very large indices. */ if (idx > (size_t) (endbuf - (char *) edefs)) @@ -10143,8 +10143,8 @@ process_version_sections (FILE * file) { Elf_External_Verneed * entry; Elf_Internal_Verneed ent; + unsigned int isum; int j; - int isum; char * vstart; if (idx > (size_t) (endbuf - (char *) eneed))