From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) by mx.groups.io with SMTP id smtpd.web12.9957.1661854492534345659 for ; Tue, 30 Aug 2022 03:14:52 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=lxXe7kVO; spf=pass (domain: gmail.com, ip: 209.85.167.43, mailfrom: aladyshev22@gmail.com) Received: by mail-lf1-f43.google.com with SMTP id m7so5923799lfq.8 for ; Tue, 30 Aug 2022 03:14:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=hEObTGaWJ1FFzj2UR0rKcen7LSaMqeLV7hjQEKJxRcc=; b=lxXe7kVOUXyikvRU/s2t+yv5BEUFAK4pb6g8vxDprj/9ym1jIHdoj9gi7q9ugsw5SL ujnVAAFfofTzxXzXfwUHXIdSNWFKh00tOWqP3zYWjqrlpG6/Ef4XxCaCUWiBqPGxY5h7 GJiCAb+soPnnI+4UFIC7Q2fat9uKCPBTw5RgEgbTeYR0JuyXy9NqymG/AYez0hmVJqJk YlrEVaCHvIeRopvfFv4jiuVqcYxnxh+uK2N2lsoUPeGaYk9hcPOIa2fnH2hQmJxYukA8 nnVwmKbeTeHYPLjJm+svoqLeDuipuWszczCt4L7sxFk3q1I6ZQxVZLngNiheE3rnOKpI W6ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=hEObTGaWJ1FFzj2UR0rKcen7LSaMqeLV7hjQEKJxRcc=; b=Y5mStVpdP/+kHFZJsEG16zjYXCwTG0O/PrgQc8iOv4Akc+YRedZZDwtSgy2Bvt+196 nT5LDauVXGKNNoLkfxzVC3QWzq8upNRZDrmi6KJmV5PIHOHiK8mAOXSuZAp8XVLARFeR RD3gxB9/sn8jl2PQYslyPray2AJ18enh5AJotcOi939gGaPlWVEhdoDnNHfZKpIOoRB8 rutKjgc/8W4yF74UuVXQVUrJlx6+tdc7siyRc9U8IAvM9b6kXAsEU8k6u0UynLPjyB89 IYjJe1aGOQoRkGq/undIj8Ynj/kY4d9J5Jo59Ng5lgTDWQQxMr3yq1s/+ngwczooSX2X BZiA== X-Gm-Message-State: ACgBeo0Bu4szQn9GAqVJHjibzv3sq4pRZg6fNjeLKtsdYhFyi8Scwpmd BC4ykHmzfza0kV9v2+1ZL94wRfSUnSc= X-Google-Smtp-Source: AA6agR7fbvEJwCq0noqqFqslA1N7dU5Ph5FqO/bRcoz2CWWdH9yuQGW/zbgDZQcHAWK0/G/qoA47cQ== X-Received: by 2002:a05:6512:1518:b0:492:d08a:a360 with SMTP id bq24-20020a056512151800b00492d08aa360mr8597287lfb.238.1661854490510; Tue, 30 Aug 2022 03:14:50 -0700 (PDT) Return-Path: Received: from PC10319.67 ([82.97.198.254]) by smtp.googlemail.com with ESMTPSA id u9-20020a05651c130900b0026008acb55asm1716755lja.113.2022.08.30.03.14.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Aug 2022 03:14:49 -0700 (PDT) From: "Konstantin Aladyshev" To: devel@edk2.groups.io Cc: bob.c.feng@intel.com, gaoliming@byosoft.com.cn, yuwei.chen@intel.com, Konstantin Aladyshev Subject: [PATCH 3/6] BaseTools/VolInfo: Increase GUID base name string Date: Tue, 30 Aug 2022 13:14:42 +0300 Message-Id: <20220830101445.18110-3-aladyshev22@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220830101445.18110-1-aladyshev22@gmail.com> References: <20220830101445.18110-1-aladyshev22@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable The current string lenght (=3D60) is not enough for cases where basename is a path to Build folder. Drop custom define and use MAX_LINE_LEN from the BaseTools codebase instead. Signed-off-by: Konstantin Aladyshev --- BaseTools/Source/C/VolInfo/VolInfo.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/BaseTools/Source/C/VolInfo/VolInfo.c b/BaseTools/Source/C/VolI= nfo/VolInfo.c index 4628e756d7..d9be3d8c18 100644 --- a/BaseTools/Source/C/VolInfo/VolInfo.c +++ b/BaseTools/Source/C/VolInfo/VolInfo.c @@ -51,15 +51,13 @@ EFI_GUID gEfiCrc32GuidedSectionExtractionProtocolGuid = =3D EFI_CRC32_GUIDED_SECTIO =0D #define EFI_SECTION_ERROR EFIERR (100)=0D =0D -#define MAX_BASENAME_LEN 60 // not good to hardcode, but let's be reason= able=0D -=0D //=0D // Structure to keep a list of guid-to-basenames=0D //=0D typedef struct _GUID_TO_BASENAME {=0D struct _GUID_TO_BASENAME *Next;=0D INT8 Guid[PRINTED_GUID_BUFFER_SIZE];=0D - INT8 BaseName[MAX_BASENAME_LEN];=0D + INT8 BaseName[MAX_LINE_LEN];=0D } GUID_TO_BASENAME;=0D =0D static GUID_TO_BASENAME *mGuidBaseNameList =3D NULL;=0D --=20 2.25.1