From nobody Sat Dec 28 11:03:28 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Authentication-Results: mx.zoho.com; dkim=fail spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org; Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 149490342063382.50223050533225; Mon, 15 May 2017 19:57:00 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 701C421A16E4E; Mon, 15 May 2017 19:56:59 -0700 (PDT) Received: from mail-wm0-x242.google.com (mail-wm0-x242.google.com [IPv6:2a00:1450:400c:c09::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id C9C5A21A16E47 for ; Mon, 15 May 2017 19:56:57 -0700 (PDT) Received: by mail-wm0-x242.google.com with SMTP id d127so33824115wmf.1 for ; Mon, 15 May 2017 19:56:57 -0700 (PDT) Received: from Precision-M4800.localdomain (broadband-188-255-77-37.moscow.rt.ru. [188.255.77.37]) by smtp.gmail.com with ESMTPSA id z18sm50943lja.20.2017.05.15.19.56.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 15 May 2017 19:56:55 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=m3yp4Wfyz4MJ/bc/frOzN5j+WrJbQMqNuYXyWct2dvI=; b=Vf2Pab8NBj+DhvRtC2l0c+J3RdtUx0iXOi3MbmX+9IIr0aJAN+8lqsRLvnNC5SIwKa rtaxStfrSgrN0bZQZ3hJZSN7QAlEn3GKjJb9jEvNzot/A2TuRtn5tKJfWvS1TPWbi71R DgabTiu1gxol0okb7ATIprn6gk6P1Z5cd5iWY5TpvmxgLA1j+BXI2JVlZ2KyYea+gxY7 Gse4GT9QtAgP7MQEng80djrN60Qt4sjQyPEzGHveJhsnvslGemoYOGqQqehFPc7+/MPf bkOR4vCrW4Kfmw1S5FictRVjicAirFVaiGVYPEmEDxkbmJlXeRapflmQstgKvXIoBN19 Tw4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=m3yp4Wfyz4MJ/bc/frOzN5j+WrJbQMqNuYXyWct2dvI=; b=g/jVUddvJP5QkTivr1XgGjWJ+hIWNe5u2uLomJI7oKcrZZ0Et8yq93DRlYn58dTmgh ZaMgZDO/FKejeDxG2MUsr0edmQQfV65ODwgcL3rImL014R36uvINI2UOsM4OOauZtnn2 36tvWEOrEBLblfSVLUQqaOJEKqrxRav/PA3tgWAAXRNR5DAuntcktNNQty5dxcUkFPI6 dOBxCeOkpzqCEbS8EOgPPIFqevzJ+ettFw3aDGDsncS13a/0c36em5iMAKycnRJzUu5X vCyybI3E9lAOYl7b7oI6A4rtkFaNblQxshVTa/A6d90wug28FIclpIWR1TP3qZvylcXH eHiw== X-Gm-Message-State: AODbwcDMYmNZlzk+IfWYqslpmBDWMSBzc7Ii5W//wQZMXO1p6unqTXz2 AnVFHoZtyG+H1w== X-Received: by 10.25.102.18 with SMTP id a18mr2679888lfc.154.1494903416439; Mon, 15 May 2017 19:56:56 -0700 (PDT) From: Sergey Temerkhanov To: edk2-devel@lists.01.org Date: Tue, 16 May 2017 05:56:30 +0300 Message-Id: <1494903391-716-2-git-send-email-s.temerkhanov@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1494903391-716-1-git-send-email-s.temerkhanov@gmail.com> References: <1494903391-716-1-git-send-email-s.temerkhanov@gmail.com> Subject: [edk2] [PATCH] MdePkg: Fix undefined behavior on variadic parameters X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Fix undefined behavior by avoiding parameter type promotion Signed-off-by: Sergey Temerkhanov --- MdePkg/Include/Library/UefiLib.h | 2 +- MdePkg/Library/UefiLib/UefiLib.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MdePkg/Include/Library/UefiLib.h b/MdePkg/Include/Library/Uefi= Lib.h index 0b14792..4e4697c 100644 --- a/MdePkg/Include/Library/UefiLib.h +++ b/MdePkg/Include/Library/UefiLib.h @@ -818,7 +818,7 @@ CHAR8 * EFIAPI GetBestLanguage ( IN CONST CHAR8 *SupportedLanguages,=20 - IN BOOLEAN Iso639Language, + IN UINTN Iso639Language, ... ); =20 diff --git a/MdePkg/Library/UefiLib/UefiLib.c b/MdePkg/Library/UefiLib/Uefi= Lib.c index a7eee01..74528ec 100644 --- a/MdePkg/Library/UefiLib/UefiLib.c +++ b/MdePkg/Library/UefiLib/UefiLib.c @@ -1514,7 +1514,7 @@ CHAR8 * EFIAPI GetBestLanguage ( IN CONST CHAR8 *SupportedLanguages,=20 - IN BOOLEAN Iso639Language, + IN UINTN Iso639Language, ... ) { --=20 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel