icoutils/0024-wrestool-restable.c-Use-size_t-when-calculating-size.patch
Richard W.M. Jones 86a1ed311e Add a series of upstream patches to enable compiler warnings and
fix multiple issues.

Revert one of the checks which breaks processing of PE binaries.

Removed the 'Group' line, not needed with modern Fedora/RPM.
2017-03-10 12:18:04 +00:00

28 lines
804 B
Diff

From 88634ac7faff5126d256cc06dfcc3d1afa060940 Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Thu, 9 Mar 2017 15:09:35 +0000
Subject: [PATCH 24/26] wrestool/restable.c: Use size_t when calculating sizes
of objects in memory.
Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
---
wrestool/restable.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/wrestool/restable.c b/wrestool/restable.c
index 8226806..fd0ba49 100644
--- a/wrestool/restable.c
+++ b/wrestool/restable.c
@@ -488,7 +488,7 @@ static int
calc_vma_size (WinLibrary *fi)
{
Win32ImageSectionHeader *seg;
- int c, segcount, size;
+ size_t c, segcount, size;
size = 0;
RETURN_IF_BAD_POINTER(-1, PE_HEADER(fi->memory)->file_header.number_of_sections);
--
2.10.2