From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mx.groups.io with SMTP id smtpd.web11.10717.1660614577294868510 for ; Mon, 15 Aug 2022 18:49:38 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=gHa6Pbw7; spf=pass (domain: intel.com, ip: 134.134.136.126, mailfrom: michael.d.kinney@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660614578; x=1692150578; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=2mzPXH4dy+LUYZ1XxtoK1EpOamdSJDR5DnrHaKhMlZM=; b=gHa6Pbw79L+xinAkx2pel1GOauSOI+TQxm2ILB1DQLVDUDWY4u1WP6v7 hwMAJNYB/mcGefWTdM95cB+Q9PamhzNOOsGIATFbqNWw0JUJXNp523Hj0 AZHZ3ZbFUwpBAqvvI7EbKq7NQoN9p1SD/w92iZHEk44bnG+yvLGjxfuTd xdEr1MNUbdaDVtofF2NPLDmx/YfjpX2ycgffFT7Z01QbORVLjdwVhzv0B rVxN1WFbb5+WlSbu6tW7AKd3WwYHkCUiu2eEo89clOUt5ogY5TQqgINJo uKJ7zA+SybfHXTmg9Nqz98d+2qGkYIWPk7ciSoi3JHEkUiiijwVvdae2Z w==; X-IronPort-AV: E=McAfee;i="6400,9594,10440"; a="275154349" X-IronPort-AV: E=Sophos;i="5.93,239,1654585200"; d="scan'208";a="275154349" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Aug 2022 18:49:37 -0700 X-IronPort-AV: E=Sophos;i="5.93,239,1654585200"; d="scan'208";a="603362916" Received: from mdkinney-mobl2.amr.corp.intel.com ([10.251.26.67]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Aug 2022 18:49:37 -0700 From: "Michael D Kinney" To: devel@edk2.groups.io Cc: Konstantin Aladyshev , Bob Feng , Liming Gao , Yuwei Chen Subject: [Patch edk2-stable202208 2/2] BaseTools/Source/C/GenSec: Fix EFI_SECTION_FREEFORM_SUBTYPE_GUID header Date: Mon, 15 Aug 2022 18:49:28 -0700 Message-Id: <20220816014928.2206-3-michael.d.kinney@intel.com> X-Mailer: git-send-email 2.37.1.windows.1 In-Reply-To: <20220816014928.2206-1-michael.d.kinney@intel.com> References: <20220816014928.2206-1-michael.d.kinney@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4021 When the size of a EFI_SECTION_FREEFORM_SUBTYPE_GUID section required the use of EFI_FREEFORM_SUBTYPE_GUID_SECTION2 header, set the section type to EFI_SECTION_FREEFORM_SUBTYPE_GUID. Cc: Konstantin Aladyshev Cc: Bob Feng Cc: Liming Gao Cc: Yuwei Chen Signed-off-by: Michael D Kinney --- BaseTools/Source/C/GenSec/GenSec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaseTools/Source/C/GenSec/GenSec.c b/BaseTools/Source/C/GenSec/GenSec.c index 191a49d99228..e318d45f77d3 100644 --- a/BaseTools/Source/C/GenSec/GenSec.c +++ b/BaseTools/Source/C/GenSec/GenSec.c @@ -1112,7 +1112,7 @@ Routine Description: // if (TotalLength >= MAX_SECTION_SIZE) { SubtypeGuidSect2 = (EFI_FREEFORM_SUBTYPE_GUID_SECTION2 *) FileBuffer; - SubtypeGuidSect2->CommonHeader.Type = EFI_SECTION_GUID_DEFINED; + SubtypeGuidSect2->CommonHeader.Type = EFI_SECTION_FREEFORM_SUBTYPE_GUID; SubtypeGuidSect2->CommonHeader.Size[0] = (UINT8) 0xff; SubtypeGuidSect2->CommonHeader.Size[1] = (UINT8) 0xff; SubtypeGuidSect2->CommonHeader.Size[2] = (UINT8) 0xff; -- 2.37.1.windows.1