Browse Source

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.
ThomasKuehne 4 years ago
parent
commit
73a3a8adb2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/pedump/pedump.c

+ 1 - 1
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) {