Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Sep 2019 14:07:17 -0000
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r346327 - head/contrib/elftoolchain/readelf
Message-ID:  <201904171750.x3HHoicp006959@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Wed Apr 17 17:50:44 2019
New Revision: 346327
URL: https://svnweb.freebsd.org/changeset/base/346327

Log:
  readelf: use size_t for object counts
  
  PR:		212539
  Reported by:	cem
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/contrib/elftoolchain/readelf/readelf.c

Modified: head/contrib/elftoolchain/readelf/readelf.c
==============================================================================
--- head/contrib/elftoolchain/readelf/readelf.c	Wed Apr 17 17:19:54 2019	(r346326)
+++ head/contrib/elftoolchain/readelf/readelf.c	Wed Apr 17 17:50:44 2019	(r346327)
@@ -370,7 +370,7 @@ static void readelf_usage(int status);
 static void readelf_version(void);
 static void search_loclist_at(struct readelf *re, Dwarf_Die die,
     Dwarf_Unsigned lowpc, struct loc_at **la_list,
-    unsigned int *la_list_len, unsigned int *la_list_cap);
+    size_t *la_list_len, size_t *la_list_cap);
 static void search_ver(struct readelf *re);
 static const char *section_type(unsigned int mach, unsigned int stype);
 static void set_cu_context(struct readelf *re, Dwarf_Half psize,
@@ -6063,8 +6063,7 @@ loc_at_comparator(const void *la1, const void *la2)
 
 static void
 search_loclist_at(struct readelf *re, Dwarf_Die die, Dwarf_Unsigned lowpc,
-    struct loc_at **la_list, unsigned int *la_list_len,
-    unsigned int *la_list_cap)
+    struct loc_at **la_list, size_t *la_list_len, size_t *la_list_cap)
 {
 	struct loc_at *la;
 	Dwarf_Attribute *attr_list;
@@ -6438,7 +6437,8 @@ dump_dwarf_loclist(struct readelf *re)
 	Dwarf_Half tag, version, pointer_size, off_size;
 	Dwarf_Error de;
 	struct loc_at *la_list, *left, *right, *la;
-	unsigned int la_list_len, la_list_cap, duplicates, k;
+	size_t la_list_len, la_list_cap;
+	unsigned int duplicates, k;
 	int i, j, ret, has_content;
 
 	la_list_len = 0;





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904171750.x3HHoicp006959>