This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH 2/3] readelf: Make version section index sum unsigned
- From: "Maciej W. Rozycki" <macro at imgtec dot com>
- To: <binutils at sourceware dot org>
- Cc: Nick Clifton <nickc at redhat dot com>
- Date: Thu, 23 Feb 2017 18:16:55 +0000
- Subject: [PATCH 2/3] readelf: Make version section index sum unsigned
- Authentication-results: sourceware.org; auth=none
- References: <alpine.DEB.2.00.1702212247450.26999@tp.orcam.me.uk>
Make `isum' unsigned like data it is calculated from.
binutils/
* readelf.c (process_version_sections) <SHT_GNU_verdef>: Make
`isum' unsigned.
<SHT_GNU_verneed>: Likewise.
---
OK to apply?
Maciej
binutils-readelf-verdef-isum-unsigned.diff
Index: binutils/binutils/readelf.c
===================================================================
--- binutils.orig/binutils/readelf.c 2017-02-23 17:02:03.252556979 +0000
+++ binutils/binutils/readelf.c 2017-02-23 17:45:01.969909280 +0000
@@ -10024,8 +10024,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))
@@ -10141,8 +10141,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))