audk/ArmPlatformPkg
Ryan Harkin 7ffa9c616d ArmPlatformPkg/Bds: stop inputting more characters when string is full
If EditHIInputStr() is called, say with a MaxCmdLine of 2, the user is
currently allowed to enter 2 characters.

If the second character is a carriage return/line feed, this is
substituted with a NULL and the function returns.

If the second character is a regular character, the loop terminated and
the function returns.  However, the buffer has not been NULL terminated.

This patch prevents the user from entering a regular character as the
final character and ensures that the only way out of the input is by
pressing ESC or ENTER (or equivalent).

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ryan Harkin <ryan.harkin@linaro.org>
Reviewed-by: Olivier Martin <olivier.martin@arm.com>


git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15325 6f19259b-4bc3-4df7-8a09-765794883524
2014-03-12 17:24:48 +00:00
..
ArmRealViewEbPkg ArmPlatformPkg/ArmRealViewEbPkg: Fixed assertion in RuntimeDxe 2014-02-18 18:32:31 +00:00
ArmVExpressPkg ArmPlatformPkg/ArmVExpressPkg: Added Android FastBoot support 2014-03-05 04:52:33 +00:00
Bds ArmPlatformPkg/Bds: stop inputting more characters when string is full 2014-03-12 17:24:48 +00:00
Documentation ArmPlatformPkg/patches: Updated BaseTools-Pending-Patches.patch 2013-09-04 10:30:27 +00:00
Drivers ARM Packages: Removed 'inline' keyword 2013-12-10 16:39:54 +00:00
FileSystem/BootMonFs ArmPlatformPkg/BootMonFs: Added support for new revision of the NOR Flash file system 2014-03-12 17:23:33 +00:00
Include EmbeddedPkg/SerialPortExtLib.h: Changed SerialPortSetAttributes() prototype to return the set value(s) 2013-05-15 08:44:59 +00:00
Library ARM Packages: Include 'AsmMacroIoLibV8.h' instead of the 32bit version 2014-02-24 19:20:16 +00:00
MemoryInitPei ArmPkg/ArmPkg.dec: Redefined PcdSystemMemory(Base|Size) as UINT64 2014-01-10 11:27:31 +00:00
PlatformPei ARM Packages: Fixed line endings 2013-01-25 11:28:06 +00:00
PrePeiCore ArmPkg: Tidy assembler code 2014-03-01 11:01:00 +00:00
PrePi ArmPlatformPkg/PrePi: Fixed register corruption 2014-01-23 00:59:08 +00:00
Scripts ARM Packages: CRLF fixup 2014-02-12 15:30:34 +00:00
Sec ArmPkg: Tidy assembler code 2014-03-01 11:01:00 +00:00
ArmPlatformPkg-2ndstage.dsc EmbeddedPkg/EmbeddedPkg.dec: Defined default values for PcdPrePiCpuMemorySize & PcdPrePiCpuIoSize 2013-11-28 21:40:14 +00:00
ArmPlatformPkg-2ndstage.fdf ArmPlatformPkg: Replaced FatPkg source package by the pre-built FatPkg binary 2013-01-25 12:00:33 +00:00
ArmPlatformPkg.dec ArmPlatformPkg/BootMonFs: Added support for the NorFlash File System of the ARM Development Boards 2014-01-16 00:06:13 +00:00
ArmPlatformPkg.dsc EmbeddedPkg/EmbeddedPkg.dec: Defined default values for PcdPrePiCpuMemorySize & PcdPrePiCpuIoSize 2013-11-28 21:40:14 +00:00
ArmPlatformPkg.fdf ARM Package: Increase FV file size for some EDK2 firmware 2013-08-30 11:50:36 +00:00
Contributions.txt EDK II Packages: Add Contributions.txt and License.txt files 2012-04-11 23:19:46 +00:00
License.txt EDK II Packages: Added License.txt files 2012-04-12 16:40:32 +00:00