edk2/ShellPkg/Library/UefiShellLib
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
..
UefiShellLib.c ShellPkg/UefiShellLib: Fix Buffer underflow 2025-06-13 21:11:49 +00:00
UefiShellLib.h ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
UefiShellLib.inf ShellPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:25 -07:00