summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/UPT/UnitTest/DecParserUnitTest.py
diff options
context:
space:
mode:
authorShenglei Zhang <shenglei.zhang@intel.com>2019-10-15 14:27:32 +0800
committerLiming Gao <liming.gao@intel.com>2019-11-04 08:56:06 +0800
commitdf50c2fcd85e24cbece9f03f2879fdcc96096ab1 (patch)
tree270f3977ae783eb1101411046b89a9327f6516c6 /BaseTools/Source/Python/UPT/UnitTest/DecParserUnitTest.py
parent121955fd4f9a2a5da7e0e8fe0c47ad5570f18d32 (diff)
downloadedk2-df50c2fcd85e24cbece9f03f2879fdcc96096ab1.tar.gz
edk2-df50c2fcd85e24cbece9f03f2879fdcc96096ab1.tar.bz2
edk2-df50c2fcd85e24cbece9f03f2879fdcc96096ab1.zip
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>
Diffstat (limited to 'BaseTools/Source/Python/UPT/UnitTest/DecParserUnitTest.py')
0 files changed, 0 insertions, 0 deletions