From: Maciej W. Rozycki Date: Thu, 23 Feb 2017 18:16:55 +0000 (+0000) Subject: readelf: Make version section index sum unsigned X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5235cd686141bb5adb57dbbf302a168e9693672b;p=binutils-gdb.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 a528db4207f..1ab1c2c8b92 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,9 @@ +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 diff --git a/binutils/readelf.c b/binutils/readelf.c index cb0da10194c..6edb364ef66 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))