edk2/ShellPkg/Library
Pierre Gondois c2eb2136b4 ShellPkg/UefiShellLib: Fix Buffer underflow
Having StrLen(Buffer) == 0 results in a Buffer underflow.
Also, StrLen iterates over the Buffer elements until finding a NULL
character. This results in a quadratic search for '\r' characters
in the while loop.

Fix these issues.

Signed-off-by: Pierre Gondois <pierre.gondois@arm.com>
2025-06-13 21:11:49 +00:00
..
UefiHandleParsingLib ShellPkg: drop support for obsolete EFI_USB_HC_PROTOCOL 2025-03-06 17:32:08 +00:00
UefiShellAcpiViewCommandLib ShellPkg: AcpiView: Add parser support for SPCR Revision 4 2025-04-17 14:13:07 +01:00
UefiShellBcfgCommandLib ShellPkg: CodeQL Fixes 2024-10-29 02:09:18 +00:00
UefiShellCEntryLib ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
UefiShellCommandLib ShellPkg: UefiShellCommandLib: CodeQL Fixes 2024-10-29 02:09:18 +00:00
UefiShellDebug1CommandsLib ShellPkg: Prevent memcpy intrinsics in VS22 (17.14.2) 2025-06-08 18:07:56 +00:00
UefiShellDriver1CommandsLib command drvcfg ASSERT 2025-01-24 10:02:23 +00:00
UefiShellInstall1CommandsLib ShellPkg: Fix typos 2023-12-08 13:25:11 +00:00
UefiShellLevel1CommandsLib ShellPkg: UefiShellCommandLib: CodeQL Fixes 2024-10-29 02:09:18 +00:00
UefiShellLevel2CommandsLib ShellPkg/UefiShellLevel2CommandLib: Free Buffer after use 2025-06-13 21:11:49 +00:00
UefiShellLevel3CommandsLib ShellPkg: CodeQL Fixes 2024-10-29 02:09:18 +00:00
UefiShellLib ShellPkg/UefiShellLib: Fix Buffer underflow 2025-06-13 21:11:49 +00:00
UefiShellNetwork1CommandsLib ShellPkg: Fix typos 2023-12-08 13:25:11 +00:00
UefiShellNetwork2CommandsLib ShellPkg: CodeQL Fixes 2024-10-29 02:09:18 +00:00