audk/ArmPlatformPkg/Bds
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
..
Bds.c ArmPlatformPkg/Bds: Missing CRC32 update 2013-04-14 09:28:11 +00:00
Bds.inf ArmPlatformPkg/Bds/BootMenu.c: Set "Fdt" UEFI variable as local 2013-01-28 11:44:50 +00:00
BdsHelper.c ArmPlatformPkg/Bds: stop inputting more characters when string is full 2014-03-12 17:24:48 +00:00
BdsInternal.h ArmPkg: Removed unused header 'BdsUnixLib.h' 2014-02-12 15:12:41 +00:00
BootMenu.c ArmPlatformPkg/Bds: Fixed adding support for new boot entry when the generated DevicePath is bigger than one node 2013-03-12 01:03:23 +00:00
BootOption.c ArmPkg: Introduce GetGlobalEnvironmentVariable() function. 2013-03-12 00:42:59 +00:00
BootOptionSupport.c ArmPlatformPkg/Bds: Fixed adding support for new boot entry when the generated DevicePath is bigger than one node 2013-03-12 01:03:23 +00:00