]> git.proxmox.com Git - mirror_edk2.git/commit - BaseTools/Source/Python/build/BuildReport.py
BaseTools: Fix one crash bug in the report for Fixed structure Pcd
authorYonghong Zhu <yonghong.zhu@intel.com>
Thu, 18 Oct 2018 14:12:20 +0000 (22:12 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Sun, 21 Oct 2018 12:10:21 +0000 (20:10 +0800)
commit2c65efac570f14633c5001ce484dbffb8a11994a
treeefe8da42218ae0bde4c004377ee1ffa243cd314f
parent7cedfa1c8115f058d423b141548feb3c0d2a927f
BaseTools: Fix one crash bug in the report for Fixed structure Pcd

The case is:
in the DSC file:
SKUID_IDENTIFIER               = ALL

[SkuIds]
  0|DEFAULT
  1|A

[PcdsFixedAtBuild.common.A]
  TokenSpaceGuid.Test401|{0x0F, 0x12}
  TokenSpaceGuid.Test401.TEST401INT8ARRAY[0]|'B'

in the build report, Data = OverrideValues[Keys[0]], but the Keys[0]
is the keyword "DEFAULT", and in this case the "DEFAULT" SKU doesn't
save any value, then it cause the Data is empty, in the next code
when we use the code it cause crash.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
BaseTools/Source/Python/build/BuildReport.py