Files
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
..