Fixed user input arrow down/ page down caused form display highlight menu error.

When scroll menu to the one not shows in current form, and this menu has option mismatch error, current display engine will not highlight this menu.

(Sync patches r16447 and r16451 from main trunk.)

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>

git-svn-id: svn://svn.code.sf.net/p/edk2/code/branches/UDK2014.SP1/MdeModulePkg@16460 6f19259b-4bc3-4df7-8a09-765794883524
Fix an issue in the PCD service to prevent potential out of bound array access

that can cause an exception. mPeiExMapppingTableSize is the table size, but the
code needs to check the entry number.

(Sync patch r16448 from main trunk.)

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Samer El-Haj-Mahmoud <elhaj@hp.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>

git-svn-id: svn://svn.code.sf.net/p/edk2/code/branches/UDK2014.SP1/MdeModulePkg@16461 6f19259b-4bc3-4df7-8a09-765794883524