From nobody Tue May 14 23:33:20 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+98099+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+98099+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1673000311; cv=none; d=zohomail.com; s=zohoarc; b=biUIPzzJNt2XH6Li8KgkHgBP0VF2W78udzsCMbjCaDcvaUP+z/zd9im5zdPQudAbPbEGVDnwQD+hmsUBwp62pwXYNESQh+KYPKsqndT0AAa3goiZgqVgXnTyFaDVBY3mx1q/ZxXu5JCWJa3nSXK/JKvXfkzmBIeIid7ta6p7xCM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1673000311; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=g7+CLpiGl2rym2nCZOjTuOqo/h7T8lJmernJNMEWQv0=; b=DhLY+MkwQV4FPnETHpLAv5dP06ybHWE2oZWNm9urguYpn/Q/YiWRj1IrO5dOgHmun9RoJ1wzt9B/0IKqB2JR31wmiZM+tSsfOXom+FsaOlfdTfssxfxtp0K+FKv+IOkfEKQnmsAePCmuJPHbSBAIjHivQiWv7DCVT8Ale5lAO/Y= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+98099+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1673000310983332.9657370107045; Fri, 6 Jan 2023 02:18:30 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id G85hYY1788612xxLxjis70b8; Fri, 06 Jan 2023 02:18:30 -0800 X-Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mx.groups.io with SMTP id smtpd.web11.10632.1673000310037872364 for ; Fri, 06 Jan 2023 02:18:30 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10581"; a="324465934" X-IronPort-AV: E=Sophos;i="5.96,304,1665471600"; d="scan'208";a="324465934" X-Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jan 2023 02:18:29 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10581"; a="605863344" X-IronPort-AV: E=Sophos;i="5.96,304,1665471600"; d="scan'208";a="605863344" X-Received: from shsse002.sh.intel.com ([10.239.132.199]) by orsmga003.jf.intel.com with ESMTP; 06 Jan 2023 02:18:28 -0800 From: "Ning Feng" To: devel@edk2.groups.io Cc: Ning Feng Subject: [edk2-devel] [PATCH] UefiPayloadPkg/DebugPrintErrorLevelLibHob Date: Fri, 6 Jan 2023 13:27:00 -0500 Message-Id: MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,ning.feng@intel.com X-Gm-Message-State: cGmI6qAK4Ab1Lw3kpy0YEH2Qx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1673000310; bh=WIdokxXYnfVPiKesOmHXVHlNRbAKqaYFmRFnoNuRxgg=; h=Cc:Date:From:Reply-To:Subject:To; b=h3hzhCftpasFcsE0gW0LLkjW8ucgoTFKZO83FPBAme6Qim8yr3Jf+JGkUJG080eYyaH WGUq5f3HDrFkZgAl7Pb0KYdK0d6rDTsPISFX5w5jHRAcSU1MxblrQmgfFfwMT+FlkxyIc mm1mwVjwky8+1qZ5LFk2TFOmZjS5et7liZo= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1673000313087100002 Content-Type: text/plain; charset="utf-8" fix debug print error level hob not save correct debugprinterrorlevel should cover the case: Header.Lenth =3D=3DUNIVERSAL_PAYLOAD_SIZEOF_THROUGH_FIELD () Change-Id: Ibebe29fe8057e24448b31a8caa7ab6eb8054c39b BugZilla: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4264 Signed-off-by: Ning Feng Reviewed-by: Gua Guo > Reviewed-by: Gua Guo --- .../DebugPrintErrorLevelLibHob/DebugPrintErrorLevelLibHob.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UefiPayloadPkg/Library/DebugPrintErrorLevelLibHob/DebugPrintEr= rorLevelLibHob.c b/UefiPayloadPkg/Library/DebugPrintErrorLevelLibHob/DebugP= rintErrorLevelLibHob.c index 4f6b4ef1fb..10bdbe2bbc 100644 --- a/UefiPayloadPkg/Library/DebugPrintErrorLevelLibHob/DebugPrintErrorLeve= lLibHob.c +++ b/UefiPayloadPkg/Library/DebugPrintErrorLevelLibHob/DebugPrintErrorLeve= lLibHob.c @@ -46,7 +46,7 @@ GetDebugPrintErrorLevel ( { if (GenericHeader->Revision =3D=3D UEFI_PAYLOAD_DEBUG_PRINT_ERROR_= LEVEL_REVISION) { DebugPrintErrorLevel =3D (UEFI_PAYLOAD_DEBUG_PRINT_ERROR_LEVEL = *)GET_GUID_HOB_DATA (GuidHob); - if (DebugPrintErrorLevel->Header.Length > UNIVERSAL_PAYLOAD_SIZE= OF_THROUGH_FIELD (UEFI_PAYLOAD_DEBUG_PRINT_ERROR_LEVEL, ErrorLevel)) { + if (DebugPrintErrorLevel->Header.Length >=3D UNIVERSAL_PAYLOAD_S= IZEOF_THROUGH_FIELD (UEFI_PAYLOAD_DEBUG_PRINT_ERROR_LEVEL, ErrorLevel)) { gDebugPrintErrorLevel =3D DebugPrintErrorLevel->ErrorLevel; } } --=20 2.25.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#98099): https://edk2.groups.io/g/devel/message/98099 Mute This Topic: https://groups.io/mt/96090853/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-