summaryrefslogtreecommitdiff
path: root/BaseTools/Source/Python
diff options
context:
space:
mode:
authorPierre Gondois <pierre.gondois@arm.com>2025-06-12 13:28:13 +0200
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2025-06-13 21:11:49 +0000
commitc2eb2136b41eb051847ddba68d28de8863a2babd (patch)
tree7f77b2f96c57294d80ce6930eb4eb3019e4dba3c /BaseTools/Source/Python
parentf242a0e87f1d43094f697265d66cce42a387865e (diff)
downloadedk2-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