From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by mx.groups.io with SMTP id smtpd.web08.39175.1636334097815881490 for ; Sun, 07 Nov 2021 17:14:58 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=permanent DNS error (domain: byosoft.com.cn, ip: 58.240.74.242, mailfrom: gaoliming@byosoft.com.cn) Received: from DESKTOPS6D0PVI ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Mon, 08 Nov 2021 09:14:55 +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" To: "'Xiaolu.Jiang'" , Cc: "'Bob Feng'" , "'Yuwei Chen'" References: <20211106035056.183-1-xiaolu.jiang@intel.com> In-Reply-To: <20211106035056.183-1-xiaolu.jiang@intel.com> Subject: =?UTF-8?B?5Zue5aSNOiBbZWRrMi1kZXZlbF1bUEFUQ0hdIEJhc2VUb29sczogSW5jcmVhc2UgdGhlIERldmljZVBhdGggbGVuZ3RoIGZvciBzdXBwb3J0IG1vcmUgUENEIHZhbHVlLg==?= Date: Mon, 8 Nov 2021 09:14:54 +0800 Message-ID: <00a601d7d43e$0ae9bbf0$20bd33d0$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQGP8/mGim3ncWd7smgM7uUFjrw3TayIlAAQ Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn Xiaolu: Why choose 4096? Is it enough? Thanks Liming > -----=D3=CA=BC=FE=D4=AD=BC=FE----- > =B7=A2=BC=FE=C8=CB: Xiaolu.Jiang > =B7=A2=CB=CD=CA=B1=BC=E4: 2021=C4=EA11=D4=C26=C8=D5 11:51 > =CA=D5=BC=FE=C8=CB: devel@edk2.groups.io > =B3=AD=CB=CD: Xiaolu.Jiang ; Bob Feng > ; Liming Gao ; Yuwei > Chen > =D6=F7=CC=E2: [edk2-devel][PATCH] BaseTools: Increase the DevicePath = length for > support more PCD value. >=20 > Currently the PCD Value only support 13 Guid,When use more 13 pcd will > cause the build tool fail, > Need increase the DevicePath length to support more value. >=20 > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3718 >=20 > Cc: Bob Feng > Cc: Liming Gao > Cc: Yuwei Chen >=20 > Signed-off-by: Xiaolu Jiang > --- > BaseTools/Source/C/DevicePath/DevicePath.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/BaseTools/Source/C/DevicePath/DevicePath.c > b/BaseTools/Source/C/DevicePath/DevicePath.c > index c4d224ed61..ef493f5506 100644 > --- a/BaseTools/Source/C/DevicePath/DevicePath.c > +++ b/BaseTools/Source/C/DevicePath/DevicePath.c > @@ -170,7 +170,7 @@ int main(int argc, CHAR8 *argv[]) > fprintf(stderr, "Invalid option value, Device Path can't be = NULL"); >=20 > return STATUS_ERROR; >=20 > } >=20 > - Str16 =3D (CHAR16 *)malloc(1024); >=20 > + Str16 =3D (CHAR16 *)malloc(4096); >=20 > if (Str16 =3D=3D NULL) { >=20 > fprintf(stderr, "Resource, memory cannot be allocated"); >=20 > return STATUS_ERROR; >=20 > -- > 2.30.2.windows.1