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
2014-03-01 11:01:00 +00:00
2014-01-27 05:36:53 +00:00
2014-02-12 15:30:34 +00:00
2014-01-22 08:35:25 +00:00
2014-01-23 05:27:14 +00:00
2014-01-10 04:57:57 +00:00
2014-01-10 02:44:43 +00:00
2014-01-22 08:39:32 +00:00
2014-02-12 15:30:34 +00:00
2014-01-22 08:39:50 +00:00
2014-03-05 00:54:00 +00:00
2014-01-22 08:40:06 +00:00
2014-01-22 08:40:49 +00:00
Description
Acidanthera UEFI Development Kit based on EDK II edk2-stable202405
319 MiB
Languages
C 76.4%
Assembly 10.5%
Python 9.3%
Rich Text Format 1.5%
C++ 0.8%
Other 1.1%