Преглед на файлове

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 години
родител
ревизия
73a3a8adb2
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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) {