mirror of https://github.com/acidanthera/audk.git
Memory overflow verified
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7204 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
d6039b1d6e
commit
340ffb0920
|
@ -81,13 +81,13 @@ BasePrintLibFillBuffer (
|
|||
for (Index = 0; Index < Length && Buffer < EndBuffer; Index++) {
|
||||
*Buffer = (CHAR8) Character;
|
||||
*(Buffer + 1) = (CHAR8) (Character >> 8);
|
||||
Buffer += Increment;
|
||||
}
|
||||
Buffer += Increment;
|
||||
} else {
|
||||
for (Index = 0; Index < Length && Buffer < EndBuffer; Index++) {
|
||||
*Buffer = (CHAR8) Character;
|
||||
Buffer += Increment;
|
||||
}
|
||||
Buffer += Increment;
|
||||
}
|
||||
return Buffer;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue