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.web12.57030.1638162282886621985 for ; Sun, 28 Nov 2021 21:04:43 -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, 29 Nov 2021 13:04:38 +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: , Cc: "'Bob Feng'" , "'Yuwei Chen'" References: <20211129021303.2199-1-xiaolu.jiang@intel.com> In-Reply-To: <20211129021303.2199-1-xiaolu.jiang@intel.com> Subject: =?UTF-8?B?5Zue5aSNOiBbZWRrMi1kZXZlbF1bUEFUQ0hdIEJhc2VUb29sczogSW5jcmVhc2UgdGhlIERldmljZVBhdGggbGVuZ3RoIGZvciBzdXBwb3J0IG1vcmUgUENEIHZhbHVlLg==?= Date: Mon, 29 Nov 2021 13:04:38 +0800 Message-ID: <002701d7e4de$9c77d290$d56777b0$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQDkvfIAUmJqw9AEAOD5HQtJQJlvSK4AQSOA Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn Reviewed-by: Liming Gao > -----=D3=CA=BC=FE=D4=AD=BC=FE----- > =B7=A2=BC=FE=C8=CB: devel@edk2.groups.io = =B4=FA=B1=ED Xiaolu.Jiang > =B7=A2=CB=CD=CA=B1=BC=E4: 2021=C4=EA11=D4=C229=C8=D5 10:13 > =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 calculate the required memory,then allocate it. >=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..ed19eb52f6 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((strlen (Str) + 1) * sizeof (CHAR16)); >=20 > if (Str16 =3D=3D NULL) { >=20 > fprintf(stderr, "Resource, memory cannot be allocated"); >=20 > return STATUS_ERROR; >=20 > -- > 2.30.2.windows.1 >=20 >=20 >=20 > -=3D-=3D-=3D-=3D-=3D-=3D > Groups.io Links: You receive all messages sent to this group. > View/Reply Online (#84123): = https://edk2.groups.io/g/devel/message/84123 > Mute This Topic: https://groups.io/mt/87369900/4905953 > Group Owner: devel+owner@edk2.groups.io > Unsubscribe: https://edk2.groups.io/g/devel/unsub > [gaoliming@byosoft.com.cn] > -=3D-=3D-=3D-=3D-=3D-=3D >=20