From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.88; helo=mga01.intel.com; envelope-from=jaben.carsey@intel.com; receiver=edk2-devel@lists.01.org Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 03F6C2117B552 for ; Thu, 10 Jan 2019 07:15:36 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Jan 2019 07:15:36 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,461,1539673200"; d="scan'208";a="105590023" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga007.jf.intel.com with ESMTP; 10 Jan 2019 07:15:36 -0800 Received: from fmsmsx154.amr.corp.intel.com (10.18.116.70) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 10 Jan 2019 07:15:36 -0800 Received: from fmsmsx103.amr.corp.intel.com ([169.254.2.197]) by FMSMSX154.amr.corp.intel.com ([169.254.6.237]) with mapi id 14.03.0415.000; Thu, 10 Jan 2019 07:15:35 -0800 From: "Carsey, Jaben" To: krishnaLee , "edk2-devel@lists.01.org" Thread-Topic: [edk2] A question about shell-application's argument make system blocked; Thread-Index: AQHUqKuFlgl2AEVamkq5xEMEmX9deqWonOvg Date: Thu, 10 Jan 2019 15:15:35 +0000 Message-ID: References: <5740a63b.9ab0.16836642cdd.Coremail.sssky307@163.com> In-Reply-To: <5740a63b.9ab0.16836642cdd.Coremail.sssky307@163.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMTc1ZTkwYzItOTMxZS00NjVmLTljMzMtYjFlZWEzYzBiNzg1IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoibzBnNExMdVhlK3VCRVwvT0l3a3FrTkpCM2ZqYkdDbENEcVEzR0tCREQ2N0NkNzRwWVZrc0xUQWJMTUUwRUJmTnQifQ== x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.1.200.107] MIME-Version: 1.0 Subject: Re: A question about shell-application's argument make system blocked; X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jan 2019 15:15:37 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Is this in a script file? I don't remember how "comments" work on raw comm= and lines where the user types them. -Jaben > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of > krishnaLee > Sent: Wednesday, January 09, 2019 10:13 PM > To: edk2-devel@lists.01.org > Subject: [edk2] A question about shell-application's argument make system > blocked; > Importance: High >=20 > Hi everybody, > I meet a question,a special arg can make system blocked,follow is my step= s. > 1,go to uefi shell v2.2(uefi v2.70),run this application in QEMU-ovmf: > testapp.efi > 2,the output is "index:0,string:FS0:\testapp.efi" >=20 >=20 > 3,testapp.efi #abc. > 4,the output is same as step 2. ///< I had read the uefi shell specifica= tion > 2.2,the '#' is a comment remark,so I think it is ok. >=20 >=20 > 5 testapp.efi "#abc" > 6,the system blocked(dead). ///< I think it is a bug. >=20 >=20 > //follow is the testapp.efi source code: > EFI_STATUS > EFIAPI > UefiMain ( > IN EFI_HANDLE ImageHandle, > IN EFI_SYSTEM_TABLE *SystemTable > ) > { > EFI_STATUS status; > EFI_SHELL_PARAMETERS_PROTOCOL* param; > status=3DSystemTable->BootServices- > >HandleProtocol(ImageHandle,&gEfiShellParametersProtocolGuid,¶m); > if(status!=3DEFI_SUCCESS) > { > return0; > } >=20 >=20 > for(UINTN i=3D0;i< param->Argc;i++) > { > Print(L"index:%d,string:%s\n",i,param->Argv[i]); > } >=20 >=20 > return EFI_SUCCESS; > } >=20 >=20 > //test environment: > //QEMU v2.10.95 + edk2-2018-ovmf-x64. > //shell command line: > //"D:\qemu\qemu-system-x86_64.exe" -machine pc-q35-2.9 -pflash > "D:\qemu\bios\OVMF_x64_debug.fd" -serial stdio -hda fat:rw:G:\temp -net > none > //end >=20 >=20 >=20 >=20 >=20 >=20 > thanks, > krishna. >=20 >=20 >=20 > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel