Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomasKuehne <thomas@kuehne.cn>2021-12-22 18:30:21 +0300
committerGitHub <noreply@github.com>2021-12-22 18:30:21 +0300
commit73a3a8adb2b39b0598dab3fec135b46f2bf19fc5 (patch)
treeb971cfd085dfde0a0c018e3204122986548521e9
parent1734a7d60bd156cf78a0d9745557ed73c4f95055 (diff)
Fixes #21372 index overflow in pedump.c:dump_blob (#21373)
Fixes https://github.com/mono/mono/issues/21372 by changing index in dump_blob from int to guint32 This change is released under the MIT license.
-rw-r--r--tools/pedump/pedump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pedump/pedump.c b/tools/pedump/pedump.c
index 52d204719dd..40e6abdff0e 100644
--- a/tools/pedump/pedump.c
+++ b/tools/pedump/pedump.c
@@ -150,7 +150,7 @@ dent (const char *label, MonoPEDirEntry de)
static void
dump_blob (const char *desc, const char* p, guint32 size)
{
- int i;
+ guint32 i;
printf ("%s", desc);
if (!p) {