From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 20D6E740032 for ; Thu, 24 Aug 2023 05:52:21 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=djD+3EutRmBPWN6YQj83s0H9nUaHJ4LMCZskO1k25Zo=; c=relaxed/simple; d=groups.io; h=MIME-Version:From:Date:Message-ID:Subject:To:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type; s=20140610; t=1692856340; v=1; b=cLn0s7wRFo/LK5ib5oZXRwtxwsa769Udlf22KxSffr5AHF1zjZRsJgWGwe/TcCMzxaxcm1ND tmjVmO/poi8KWYEWhSV9SHyos5Ef2V7wWwFoqgJx0JthR2a5FPeXQjKRiUcAuEkIlSAy22OqmAp XzuXKYWRQm5gpEHvysJra/Do= X-Received: by 127.0.0.2 with SMTP id QfhXYY7687511xyZGz7I1Qzc; Wed, 23 Aug 2023 22:52:20 -0700 X-Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) by mx.groups.io with SMTP id smtpd.web10.4723.1692856339892117744 for ; Wed, 23 Aug 2023 22:52:20 -0700 X-Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-31ad779e6b3so5228561f8f.2 for ; Wed, 23 Aug 2023 22:52:19 -0700 (PDT) X-Gm-Message-State: wxTbCyOwKreNA0Jpc9hKaj9px7686176AA= X-Google-Smtp-Source: AGHT+IFM5n2bSfEUvfqZIuq4ZpgdDA9ddrtIg8tNk9II4XvoIK8X56lHal31Y2dAk7rIccTfMdeplHBOm/drClpx2pY= X-Received: by 2002:a5d:46cd:0:b0:317:5c36:913b with SMTP id g13-20020a5d46cd000000b003175c36913bmr10990338wrs.48.1692856337797; Wed, 23 Aug 2023 22:52:17 -0700 (PDT) MIME-Version: 1.0 From: "Mike Beaton" Date: Thu, 24 Aug 2023 06:52:06 +0100 Message-ID: Subject: [edk2-devel] [PATCH] MdeModulePkg/HiiDatabase: Fix incorrect AllocateCopyPool size To: devel@edk2.groups.io Precedence: Bulk 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,mjsbeaton@gmail.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Type: text/plain; charset="UTF-8" X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=cLn0s7wR; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io --- MdeModulePkg/Universal/HiiDatabaseDxe/ConfigKeywordHandler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdeModulePkg/Universal/HiiDatabaseDxe/ConfigKeywordHandler.c b/MdeModulePkg/Universal/HiiDatabaseDxe/ConfigKeywordHandler.c index 96e05d4cf9..f67b7760f0 100644 --- a/MdeModulePkg/Universal/HiiDatabaseDxe/ConfigKeywordHandler.c +++ b/MdeModulePkg/Universal/HiiDatabaseDxe/ConfigKeywordHandler.c @@ -1987,7 +1987,7 @@ GetNameFromId ( NULL ); if (BestLanguage == NULL) { - BestLanguage = AllocateCopyPool (AsciiStrLen ("en-US"), "en-US"); + BestLanguage = AllocateCopyPool (AsciiStrSize ("en-US"), "en-US"); ASSERT (BestLanguage != NULL); } -- 2.37.5 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#107997): https://edk2.groups.io/g/devel/message/107997 Mute This Topic: https://groups.io/mt/100930530/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-