]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/HiiDatabaseDxe: ASSERT "Private->Attribute >> 4"
authorShenglei Zhang <shenglei.zhang@intel.com>
Tue, 15 Oct 2019 06:27:32 +0000 (14:27 +0800)
committerLiming Gao <liming.gao@intel.com>
Mon, 4 Nov 2019 00:56:06 +0000 (08:56 +0800)
commitdf50c2fcd85e24cbece9f03f2879fdcc96096ab1
tree270f3977ae783eb1101411046b89a9327f6516c6
parent121955fd4f9a2a5da7e0e8fe0c47ad5570f18d32
MdeModulePkg/HiiDatabaseDxe: ASSERT "Private->Attribute >> 4"

Foreground and background color are saved in a single byte.
Bits 0..3 are the foreground color and bits 4..6 are the background color.
If the Private->Attribute defined correctly, (Private->Attribute >> 4)
must be less than 8.
This commit uses ASSERT to assume "Attribute >> 4" is less than 8.

Cc: Dandan Bi <dandan.bi@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com>
Reviewed-by: Dandan Bi <dandan.bi@intel.com>
MdeModulePkg/Universal/HiiDatabaseDxe/Font.c