diff options
author | Pierre Gondois <pierre.gondois@arm.com> | 2025-06-12 13:28:13 +0200 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2025-06-13 21:11:49 +0000 |
commit | c2eb2136b41eb051847ddba68d28de8863a2babd (patch) | |
tree | 7f77b2f96c57294d80ce6930eb4eb3019e4dba3c /BaseTools/Source/Python | |
parent | f242a0e87f1d43094f697265d66cce42a387865e (diff) | |
download | edk2-c2eb2136b41eb051847ddba68d28de8863a2babd.zip edk2-c2eb2136b41eb051847ddba68d28de8863a2babd.tar.gz edk2-c2eb2136b41eb051847ddba68d28de8863a2babd.tar.bz2 |
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>
Diffstat (limited to 'BaseTools/Source/Python')
0 files changed, 0 insertions, 0 deletions