From 242d4dae9493e3cdbe2d5ab75a0e7bc8abdfba35 Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Wed, 13 Apr 2022 13:13:14 -0300 Subject: [PATCH] bios_extract: Block attempts to extract Intel AMIBIOS 6 fork filesystem --- bios_extract/src/ami.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bios_extract/src/ami.c b/bios_extract/src/ami.c index e98d8ab..8011baa 100644 --- a/bios_extract/src/ami.c +++ b/bios_extract/src/ami.c @@ -476,6 +476,11 @@ AMI95Extract(unsigned char *BIOSImage, int BIOSLength, int BIOSOffset, Date[8] = 0; printf("AMI95 Version\t: %.4s (%s)\n", abc->Version, Date); + if (!Date[0] && !memcmp(abc->Version, "0632", 4)) { + fprintf(stderr, + "Error: cannot handle Intel fork filesystem.\n"); + return TRUE; + } /* First, the boot rom */ uint32_t BootOffset;