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 F1EBCAC0B61 for ; Sat, 7 Oct 2023 05:05:37 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=a2jWGtiSiIxX5gJ6f5v2AePxQ936HcysBf6jw4pPOA4=; c=relaxed/simple; d=groups.io; h=From:To:Cc:References:In-Reply-To:Subject:Date:Message-ID:MIME-Version:Thread-Index:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Transfer-Encoding:Content-Language; s=20140610; t=1696655136; v=1; b=YF7dQ2kQOqFiaYkkVJM7Bk198n5nEWZhfixz8vgGt2QkSpaikgPHFPzZT0x8/4o+P0J7b8PJ gMd9mnDvDaLD28QEXuQK0QR1hn1em1nULStmGTEUisH2RsetXqAwcjPlo7Iqm9AJmOeEJVXw37n /1WXCHJWgFEM7CzsvTh0t8HQ= X-Received: by 127.0.0.2 with SMTP id wJHWYY7687511xQq9Z7MWgUb; Fri, 06 Oct 2023 22:05:36 -0700 X-Received: from cxsh.intel-email.com (cxsh.intel-email.com [121.46.250.151]) by mx.groups.io with SMTP id smtpd.web11.12735.1696655133991392716 for ; Fri, 06 Oct 2023 22:05:36 -0700 X-Received: from cxsh.intel-email.com (localhost [127.0.0.1]) by cxsh.intel-email.com (Postfix) with ESMTP id DFDC2DDA78A for ; Sat, 7 Oct 2023 13:05:30 +0800 (CST) X-Received: from localhost (localhost [127.0.0.1]) by cxsh.intel-email.com (Postfix) with ESMTP id DB440DDA7DC for ; Sat, 7 Oct 2023 13:05:30 +0800 (CST) X-Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by cxsh.intel-email.com (Postfix) with SMTP id 39B6DDDA7E0 for ; Sat, 7 Oct 2023 13:05:27 +0800 (CST) X-Received: from DESKTOPS6D0PVI ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP(SSL) for ; Sat, 07 Oct 2023 13:05:16 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-Originating-IP: 58.246.60.130 X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming via groups.io" To: "'Jake Garver'" , Cc: , References: In-Reply-To: Subject: =?UTF-8?B?W2VkazItZGV2ZWxdIOWbnuWkjTogW1BBVENIIHYyXSBCYXNlU3RhY2tDaGVja0xpYjogRml4IFNUQUNLIEZBVUxUIG1lc3NhZ2U=?= Date: Sat, 7 Oct 2023 13:05:14 +0800 Message-ID: <080101d9f8db$dc3f6a10$94be3e30$@byosoft.com.cn> MIME-Version: 1.0 Thread-Index: AQJ+g9KK3jnnaXzuiV7FSHH0biV6Iq70r+Yg 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,gaoliming@byosoft.com.cn List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: fF3veKLtvHfRg1zUg2hx4zG0x7686176AA= Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=YF7dQ2kQ; dmarc=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 Reviewed-by: Liming Gao > -----=D3=CA=BC=FE=D4=AD=BC=FE----- > =B7=A2=BC=FE=C8=CB: Jake Garver > =B7=A2=CB=CD=CA=B1=BC=E4: 2023=C4=EA10=D4=C26=C8=D5 0:19 > =CA=D5=BC=FE=C8=CB: devel@edk2.groups.io > =B3=AD=CB=CD: michael.d.kinney@intel.com; gaoliming@byosoft.com.cn; > zhiguang.liu@intel.com; Jake Garver > =D6=F7=CC=E2: [PATCH v2] BaseStackCheckLib: Fix STACK FAULT message >=20 > __builtin_return_address returns a pointer, not a string. Fix the STACK > FAULT message in BaseStackCheckLib appropriately. >=20 > Signed-off-by: Jake Garver > --- > MdePkg/Library/BaseStackCheckLib/BaseStackCheckGcc.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/MdePkg/Library/BaseStackCheckLib/BaseStackCheckGcc.c > b/MdePkg/Library/BaseStackCheckLib/BaseStackCheckGcc.c > index 0d2918668e..ea168841b6 100644 > --- a/MdePkg/Library/BaseStackCheckLib/BaseStackCheckGcc.c > +++ b/MdePkg/Library/BaseStackCheckLib/BaseStackCheckGcc.c > @@ -6,6 +6,7 @@ > to exiting the function. If the "canary" is overwritten __stack_chk_fail() > is called. This is GCC specific code. >=20 > + Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. > Copyright (c) 2012, Apple Inc. All rights reserved.
> SPDX-License-Identifier: BSD-2-Clause-Patent >=20 > @@ -34,7 +35,7 @@ __stack_chk_fail ( > { > UINT8 DebugPropertyMask; >=20 > - DEBUG ((DEBUG_ERROR, "STACK FAULT: Buffer Overflow in > function %a.\n", __builtin_return_address (0))); > + DEBUG ((DEBUG_ERROR, "STACK FAULT: Buffer Overflow at 0x%p.\n", > RETURN_ADDRESS (0))); >=20 > // > // Generate a Breakpoint, DeadLoop, or NOP based on PCD settings even > if > -- > 2.34.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 (#109378): https://edk2.groups.io/g/devel/message/109378 Mute This Topic: https://groups.io/mt/101812329/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-