<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Tianocore/edk2.git/ShellPkg/Library, branch master</title>
<subtitle>EDK II (mirror)</subtitle>
<id>https://git.radix-linux.su/Tianocore/edk2.git/atom?h=master</id>
<link rel='self' href='https://git.radix-linux.su/Tianocore/edk2.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/'/>
<updated>2026-09-03T22:15:47+00:00</updated>
<entry>
<title>ShellPkg/UefiShellBcfg: Exit early if ShellCommandLineParse() failed</title>
<updated>2026-09-03T22:15:47+00:00</updated>
<author>
<name>Mingjie Shen</name>
<email>shen497@purdue.edu</email>
</author>
<published>2026-09-01T02:50:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=9d46dc9fa036b701f637f5e4ccc659d4999b90fd'/>
<id>urn:sha1:9d46dc9fa036b701f637f5e4ccc659d4999b90fd</id>
<content type='text'>
Jump to the Done cleanup label when `ShellCommandLineParse()` fails, and move
the success path (unchanged) out of the now-unnecessary else block. This patch
does not introduce behavioral change.

Generated by the following Coccinelle semantic patch:

```smpl
@@
identifier status, problem, ret, hii;
statement S;
@@
  if (EFI_ERROR (status)) {
    if ((status == EFI_VOLUME_CORRUPTED) &amp;&amp; (problem != NULL)) {
      ShellPrintHiiDefaultEx (STRING_TOKEN (STR_GEN_PROBLEM), hii, ..., problem);
      FreePool (problem);
      ret = SHELL_INVALID_PARAMETER;
    } else {
      ASSERT (FALSE);
    }
+   goto Done;
  }
- else {
    ...
- }
  ...
Done:
  S
```

Signed-off-by: Mingjie Shen &lt;shen497@purdue.edu&gt;
</content>
</entry>
<entry>
<title>ShellPkg/Ls: Initialize list pointer variable</title>
<updated>2026-08-27T07:58:44+00:00</updated>
<author>
<name>Artem Senichev</name>
<email>artemsen@gmail.com</email>
</author>
<published>2026-08-19T11:28:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=19d74a12441794183d14f80ebc3e356de26320c4'/>
<id>urn:sha1:19d74a12441794183d14f80ebc3e356de26320c4</id>
<content type='text'>
Using an uninitialized variable resulted in a system exception when the
user typed the `ls -r` command.

ShellOpenFileMetaArg() only allocates a list head when this is NULL, and
appends to whatever it points at otherwise.

Signed-off-by: Artem Senichev &lt;artemsen@gmail.com&gt;
</content>
</entry>
<entry>
<title>ShellPkg/EfiDecompress: Fix Codeql issues</title>
<updated>2026-08-04T07:35:35+00:00</updated>
<author>
<name>Pierre Gondois</name>
<email>pierre.gondois@arm.com</email>
</author>
<published>2026-05-27T14:55:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=fa41c179db1f9fc21eb425f44b85a16262c806ca'/>
<id>urn:sha1:fa41c179db1f9fc21eb425f44b85a16262c806ca</id>
<content type='text'>
Fix codeql reported issues by flattening MainCmdEfiDecompress(),
making it easier for the tool to evaluate potential risks.

Signed-off-by: Pierre Gondois &lt;pierre.gondois@arm.com&gt;
</content>
</entry>
<entry>
<title>ShellPkg/Comp: Extract helper functions</title>
<updated>2026-08-04T07:35:35+00:00</updated>
<author>
<name>Pierre Gondois</name>
<email>pierre.gondois@arm.com</email>
</author>
<published>2026-05-26T11:02:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=383e680c3cf62b564783a5a26eae0b9ffd881b61'/>
<id>urn:sha1:383e680c3cf62b564783a5a26eae0b9ffd881b61</id>
<content type='text'>
Refactor the Comp command and extract 2 functions:
- OpenFileOperand()
- CompareFiles()

This allows to simplify the logic of MainCmdComp() and
fix some codeql reported potential errors.

Signed-off-by: Pierre Gondois &lt;pierre.gondois@arm.com&gt;
</content>
</entry>
<entry>
<title>ShellPkg/EfiDecompress: Check presence of decompression protocol</title>
<updated>2026-08-04T07:35:35+00:00</updated>
<author>
<name>Pierre Gondois</name>
<email>pierre.gondois@arm.com</email>
</author>
<published>2026-05-26T10:31:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=35a2f2754615bb3e029d3c86da09f8a32e5b14a1'/>
<id>urn:sha1:35a2f2754615bb3e029d3c86da09f8a32e5b14a1</id>
<content type='text'>
Check the return value of LocateProtocol() before
using the decompression protocol. This avoids a
potential NULL pointer derefence spotted by codeql.

Signed-off-by: Pierre Gondois &lt;pierre.gondois@arm.com&gt;
</content>
</entry>
<entry>
<title>ShellPkg/Dmem: Refactor MainCmdDmem()</title>
<updated>2026-08-04T07:35:35+00:00</updated>
<author>
<name>Pierre Gondois</name>
<email>pierre.gondois@arm.com</email>
</author>
<published>2026-05-26T09:29:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=d9185d45c21ba5f385996b9d76309e2cc24cc2af'/>
<id>urn:sha1:d9185d45c21ba5f385996b9d76309e2cc24cc2af</id>
<content type='text'>
Refactor MainCmdDmem() to make it easier to understand.

Signed-off-by: Pierre Gondois &lt;pierre.gondois@arm.com&gt;
</content>
</entry>
<entry>
<title>ShellPkg/EfiCompress: Extract OpenFileHelper() and CompressFile()</title>
<updated>2026-08-04T07:35:35+00:00</updated>
<author>
<name>Pierre Gondois</name>
<email>pierre.gondois@arm.com</email>
</author>
<published>2026-05-06T10:37:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=f260ae0375876d2d8683d7dab54071b1d980b15b'/>
<id>urn:sha1:f260ae0375876d2d8683d7dab54071b1d980b15b</id>
<content type='text'>
Extract file opening and compression code into helpers.

Upon calling:
- gEfiShellProtocol-&gt;GetFileSize()
- gEfiShellProtocol-&gt;ReadFile()
the returned Status is now checked.

Upon calling AllocateZeroPool, the failed status is now set to
EFI_OUT_OF_RESOURCES.

Other than that, no functional change.

Signed-off-by: Pierre Gondois &lt;pierre.gondois@arm.com&gt;
</content>
</entry>
<entry>
<title>ShellPkg/Pci: Extract ParsePciBdf()</title>
<updated>2026-08-04T07:35:35+00:00</updated>
<author>
<name>Pierre Gondois</name>
<email>pierre.gondois@arm.com</email>
</author>
<published>2026-05-06T10:11:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=c089090278236fdd84404b9ec233835aa0accc96'/>
<id>urn:sha1:c089090278236fdd84404b9ec233835aa0accc96</id>
<content type='text'>
Extract BDF argument parsing into a helper.

No functional change.

Signed-off-by: Pierre Gondois &lt;pierre.gondois@arm.com&gt;
</content>
</entry>
<entry>
<title>ShellPkg/Pci: Extract PciEnumerateAll()</title>
<updated>2026-08-04T07:35:35+00:00</updated>
<author>
<name>Pierre Gondois</name>
<email>pierre.gondois@arm.com</email>
</author>
<published>2026-05-06T09:47:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=ba2f2169863df9a5012eb2882cfe2822a49955e4'/>
<id>urn:sha1:ba2f2169863df9a5012eb2882cfe2822a49955e4</id>
<content type='text'>
Extract the default PCI enumeration path into a helper.

No functional change.

Signed-off-by: Pierre Gondois &lt;pierre.gondois@arm.com&gt;
</content>
</entry>
<entry>
<title>ShellPkg/UefiShellDebug1: Lower indentation level in MainCmdXXX() (4/4)</title>
<updated>2026-08-04T07:35:35+00:00</updated>
<author>
<name>Pierre Gondois</name>
<email>pierre.gondois@arm.com</email>
</author>
<published>2026-06-04T09:21:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=42f1d004c070e60d05281f98afca56d897d395e9'/>
<id>urn:sha1:42f1d004c070e60d05281f98afca56d897d395e9</id>
<content type='text'>
This patch aims to help breaking down the long functions present in
the ShellPkg and reduce complexity/nested code and conditions.

Lower the indentation level in the newly created MainCmdXXX()
functions.

To avoid having one large commit updating all the UefiShellDebug1
commands, only update these files:
- SerMode.c
- SetSize.c
- SetVar.c
- SmbiosView/SmbiosView.c

No functional change should be induced by this patch.

Signed-off-by: Pierre Gondois &lt;pierre.gondois@arm.com&gt;
</content>
</entry>
</feed>
