Skip to content

Commit 319274d

Browse files
committed
Remove machine check as they have done upstream.
It is currently hard coded to this: Intel 386 or later processors and compatible processors but we can occasionally get other machine types so this winds up flagging dlls as invalid when it should not.
1 parent c79b153 commit 319274d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

mono/metadata/metadata-verify.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,8 +441,6 @@ verify_pe_header (VerifyContext *ctx)
441441

442442
if (offset > ctx->size - 20)
443443
ADD_ERROR (ctx, g_strdup ("File with truncated pe header"));
444-
if (read16 (pe_header) != 0x14c)
445-
ADD_ERROR (ctx, g_strdup ("Invalid PE header Machine value"));
446444
}
447445

448446
static void

0 commit comments

Comments
 (0)