From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from atlmailgw2.ami.com (atlmailgw2.ami.com [63.147.10.42]) by mx.groups.io with SMTP id smtpd.web08.266.1616170888767477446 for ; Fri, 19 Mar 2021 09:21:29 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@americanmegatrends.onmicrosoft.com header.s=selector1-americanmegatrends-onmicrosoft-com header.b=PcxUsv7V; spf=pass (domain: ami.com, ip: 63.147.10.42, mailfrom: rameshr@ami.com) X-AuditID: ac10606f-8edff70000006d35-1d-6054cf87cb7c Received: from atlms1.us.megatrends.com (atlms1.us.megatrends.com [172.16.96.144]) (using TLS with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client did not present a certificate) by atlmailgw2.ami.com (Symantec Messaging Gateway) with SMTP id 9B.75.27957.78FC4506; Fri, 19 Mar 2021 12:21:27 -0400 (EDT) Received: from NAM04-DM6-obe.outbound.protection.outlook.com (104.47.73.49) by webmail.ami.com (172.16.96.144) with Microsoft SMTP Server (TLS) id 14.3.498.0; Fri, 19 Mar 2021 12:21:27 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Eneze7v2f1t4S7GbU3QFRGcMBDVaWKF8SBB+H9UD5IniSsHiIZVMAxyteyXcLIL5n4eHDhItOCezYhw97Xr4yQiVD7FaRCP3Y2/8fPqxIIli7P18s7ulOK7tZggFTaKQFTGDK6IB9DFQKQaOzepqHsfHoL22Ty+Sw0XWZ0/TDOSNIV14hBzFbh/z/E5YH0vicGSPG0oIIFqgpKRlzhJSJsM9KF+dKid49iNHSyniTQzXvXjvmmSxKH2Fc7J0pqX3H1cqEB9/55BwiN0lihMvdd0lnSsPuV9hoXiMCAbYZMznaSwjOOEmsZR+0uQlin7eIJcJQXuue0wStYlaN5L+bQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=th6gtaz/cRiEd6ZwWRrxjgckQfAiu32tmxoCBGlhzM4=; b=FozojMPZtP2RL4DlPT5vZ5TnE4EZPfUkgSH41JpFCOCHtR5zTBNOreZSu5VexE6KtuWObuSvGMGrYZI38SNt8drItzUbSy1ZYhGM66yT0BVUPs58/NBjMNcprnS9j80K/jtgFsVA7T6Jqd+zkkOHhTLQ10+JD5BCtqzry9ck9LUnoiFHbgs/RJLkheEdHpvUVMoBw/w3uZUZ8NoJMRaqAC8pP1N7IpRsoFhbVL3PDFGR2a4CuJyOcTdMQi5vDr9RPuHmh8gHzd7sjz/w8JdX/bgGbxH+gWbJFRqky5Wyjs6wU8wLyuq7gvZwPFWvCJphCvEsMynwD5rfZSTg4qP2dg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ami.com; dmarc=pass action=none header.from=ami.com; dkim=pass header.d=ami.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=americanmegatrends.onmicrosoft.com; s=selector1-americanmegatrends-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=th6gtaz/cRiEd6ZwWRrxjgckQfAiu32tmxoCBGlhzM4=; b=PcxUsv7VnXl53Zdia7ZSiHih8vQD+aDRFxcb+QPxxijCBB5lmi7YQQZfS/FZzyCkSz+256bRnkFjRZ1l9rdfdP1F6lqwbhdvoLV40Ii+peYhIQwDppVEqEHAzvhk3Q8Guq3hNE+HWmQlIlIAeHE494nF5lDK16Xa9pHbervO6ic= Received: from DM5PR1001MB2361.namprd10.prod.outlook.com (2603:10b6:4:2f::38) by DM5PR10MB1721.namprd10.prod.outlook.com (2603:10b6:4:5::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3955.18; Fri, 19 Mar 2021 16:21:25 +0000 Received: from DM5PR1001MB2361.namprd10.prod.outlook.com ([fe80::7c4a:72dd:c830:80ae]) by DM5PR1001MB2361.namprd10.prod.outlook.com ([fe80::7c4a:72dd:c830:80ae%7]) with mapi id 15.20.3955.018; Fri, 19 Mar 2021 16:21:25 +0000 From: "Ramesh R." To: "devel@edk2.groups.io" Subject: Issue in ShellPkg Thread-Topic: Issue in ShellPkg Thread-Index: Adcc2+drVRuDdSShTkK9NQb9YGjtuA== Date: Fri, 19 Mar 2021 16:21:25 +0000 Message-ID: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=ami.com; x-originating-ip: [49.207.140.242] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 1ae5315b-a9ae-4964-cb33-08d8eaf30ad7 x-ms-traffictypediagnostic: DM5PR10MB1721: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7691; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: sBT3h/EypGGdfvTy69fz+DOfQDQYLUJq+rDY/RAWXRAimWybptntWNDPQJTEwEYEaTOXLdyMBfZDWf/1QFzCz+eNL3X6yZ21iK9ycKqAZu+fwlK6k/bvTur66QWx+2fA/GWQB6y73If/Nu+tBPM+TkBm8rK6g1ng0HPKhDDj357zCZrg2O+Ed0PUM2PNaEQcf0LD6ohAF7d+FN/JaaXJa3BFKdZT55Z0uWsJCDhGtjNgapEzyOA3FdyzBQDCp90Y+HVee86VexR7347mo0a6/rxtezssmvgSgJwWer4O1sH/QnKZJVBpXoIviL4+adJwkOeB9H5UvoDY1hrZlt/wxLtNBR2zHazfjoRWsyvgkidtsW7eytLOs1Dcxx9C8YKhjLFviED8s2nhyeQEE54f9gBeutltKNY9MvpRVm2Nkl3jjOW98mdTSxa78IN+Vkq9LUBwMKuEV+BUntYSSyJV+MsjC/iV1sVKV+ka6MXViFN3xsR1kIPhrK36P4cwqabJ21s1FujP0UWHROGIQptd9O6fTKag2YACB4iLfNCRzsKCUHPABPraXnRAqgZG2olw6n4/+h1bdsEVAgD3wC2wPrUUOIjypYm5wm2zZbRK3gDAMeJL2xX4yZ7h1fqpBO8svuAULIBzXKx8UG7n7nY+fy6PCv3pvfADWGShS0YZ9ak= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM5PR1001MB2361.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(346002)(136003)(39850400004)(366004)(396003)(376002)(5660300002)(7696005)(55016002)(83380400001)(316002)(86362001)(66446008)(478600001)(7116003)(38100700001)(66556008)(71200400001)(52536014)(33656002)(2906002)(26005)(3480700007)(186003)(4744005)(66946007)(76116006)(6506007)(64756008)(66476007)(55236004)(8676002)(9686003)(6916009)(8936002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?VF7Y4tRL7PdB0qtsBoleDH3ieKgqqB8sp9oxiRmqoW5NTDSNb6OiQMduKpGX?= =?us-ascii?Q?psOkoC1I1+lL0CH0DOl5ou39JXaXAf98lxw+xEkgNTur2Q955Ttt3xxzjOaM?= =?us-ascii?Q?S1279qRM8J6q8NjBB8FSkGruORxU6d/Z1boZBMn3E5djBIdddFhtcni+TkPX?= =?us-ascii?Q?Lj59A7cqWI5E+P6DFf4ODjnwNXkGQ30gcjJkTrfcbZqlpaFJeivAZaU3V4TK?= =?us-ascii?Q?j1r2sLjK8DQCbgtgixxb4fZSw5EAbcM0UOoYmf8O9Hq/Lg0GKZDVMn/czmAh?= =?us-ascii?Q?RVVx3qC9Om5gjInksosB8qpGMRu/uKyibXE872+mFqO5SPFwEIhPYA9X8Zj9?= =?us-ascii?Q?ethxBjgFLoKsK96VGRE/UDBhWBZw6J3garbXuv46IOYdSy+dj9bUHyryNdDA?= =?us-ascii?Q?zs51YBt7DCNskrgEyPYCme+Nab5dJpcTjzmQ8n+AbTCtj0cyxjomJBct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uVPn?= x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM5PR1001MB2361.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1ae5315b-a9ae-4964-cb33-08d8eaf30ad7 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Mar 2021 16:21:25.1602 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 27e97857-e15f-486c-b58e-86c2b3040f93 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: JULp/ywIKs29U7Q7x1UnRWva7zunnBj/h7hZnvcYHj0m7iCMcX4iCRrA82Q1nspT X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR10MB1721 Return-Path: rameshr@ami.com X-OriginatorOrg: ami.com X-Brightmail-Tracker: H4sIAAAAAAAAA2WSa0gUURTHuTPjthor06Z5Wi2niQoszfUtaJQR1odIUgoCcYfdUSd3Z5bd rbY+bQ+1l2VplEa6Rkap9MS0LMolSS3QNiuVMk1LS3qo4CNJWmdGELqffv9z/5zHvUeJq+8r NEqOt7EWnjHSCh+ihtQVhua3penCi9zhcfmFlxUb0da6iXaUgvY4UALD84KNsbGUgbXqE+kU C7ef0R+kKc6QSGtpymxk9KyJ5W2JNGM2s7yB3uBD/XcSPDaOp1heLxg4PiuR3pa6IzQuLjo+ VEtvSMtmKY7PFCwmxsYJPKUXeJvHzRo8UUp3yjv7xrOfhPnOSvvt2re4Aw0Gn0TeSiCj4PXh ygUnkY9STT7CoOlzPi4JF4LiY6dFgcjrOHT8qJFFKwEFLccVkriJoK21XBQE+RKH4qFmOUEZ Brm9QwpJfEUwff8tMVtTQa6A3ic9IvuRWrhUmy/yYlID7xqOYlI8GIaePpE5DLo6P6BZJshV UHZmUvSrSB0UDfaLHkQugYnWGpFxMgC6B8oxaT4Srj1uwyX2h2/9M15S3+cRnOnsJqQLGlzD 7UjiZeAuPyXzdmioeCUnCoG77x2yPwdGz/5WSLwaxr50yAWWQ1VBn+wJgt7OOnF6INu8wNF4 jJDECQJyZ3rkm1IlDD9uxArR+tJ5rUssQN/VSZFV5CJoKRkgpPg6cDaMKiReC9crhvE5fvWs H5sfd6IFVUjN2IwmhjNmHYgIY0xcmF4w3UPSxgr1aGQk1oUwJfJ8txKn/VTN+jSdWmVgDh5i LUKGZZ+RtbpQkufhz+GahbM75VnSjMjwcI3/nNBGxUTFRsRq46NiIyPpAFVVclOGmszyLHsO y5pZy1wSTOmtcaC8LdEPqjPzdu27vbmXf/ix0pk67fYNcrObP4/bo4/YyoTkMVV6hP+7huLl 52cC31Sn5HGBNeYB6+6lv9yuQQfWYrdTfanOoq7n7Rer/+bWp1+cOnvLyS/aVPadWL0n6cWn CdWWvaP2pVfGX/+5UBCj/vKor7ipcufiTN+Yrp6pkjU0Yc1mtCG4xcr8A/twkALGAwAA Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_DM5PR1001MB23617E96D065F038BE433647A2689DM5PR1001MB2361_" --_000_DM5PR1001MB23617E96D065F038BE433647A2689DM5PR1001MB2361_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable In ShellPkg, file Cp.C, Function CopySingleFile Could see allocating the buf= fer to read/write on the BlockIo device. Don't see code that we are free the= memory. So every time user copy the files in Shell, available memory going= to reduce. // // copy data between files // Buffer =3D AllocateZeroPool(ReadSize); Thanks, Ramesh Please consider the environment before printing this email. The information contained in this message may be confidential and proprietar= y to American Megatrends (AMI). This communication is intended to be read o= nly by the individual or entity to whom it is addressed or by their designee= . If the reader of this message is not the intended recipient, you are on no= tice that any distribution of this message, in any form, is strictly prohibi= ted. Please promptly notify the sender by reply e-mail or by telephone at 7= 70-246-8600, and then delete or destroy all copies of the transmission. --_000_DM5PR1001MB23617E96D065F038BE433647A2689DM5PR1001MB2361_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

In ShellPkg, file Cp.C, Function= CopySingleFile Could see allocating the buffer to read/write on= the BlockIo device. Don’t see code that we are free the memory. So ev= ery time user copy the files in Shell, available memory going to reduce.

 

   =    //

   =    // copy data between files

   =    //

   =    Buffer =3D AllocateZeroPool(ReadSize);

 

Thanks,

Ramesh

P Ple= ase consider the environment before printing this email

The information contained in this message may be confidential and= proprietary to American Megatrends (AMI). This communication is intended t= o be read only by the individual or entity to whom it is addressed or by the= ir designee. If the reader of this message is not the intended recipient, yo= u are on notice that any distribution of this message, in any form, is stric= tly prohibited. Please promptly notify the sender by reply e-mail or by tel= ephone at 770-246-8600, and then delete or destroy all copies of the transmi= ssion.

--_000_DM5PR1001MB23617E96D065F038BE433647A2689DM5PR1001MB2361_--