audk/MdeModulePkg/Core
Hao Wu 1860cb00c1 MdeModulePkg/DxeCore: Add ASSERT to ensure no subtract underflow
For function SplitRecord() in file PropertiesTable.c, there is a
potential subtract underflow case for line:

  return TotalNewRecordCount - 1;

However, such case will not happen since the logic in function
SplitTable() ensure that when calling SplitRecord(), the variable
'TotalNewRecordCount' will not be zero when performing the subtraction.
It will be handled in the previous if statement:

  if (MaxSplitRecordCount == 0) {
    CopyMem (NewRecord, OldRecord, DescriptorSize);
    return 0;
  }

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
2017-04-14 13:13:51 +08:00
..
Dxe MdeModulePkg/DxeCore: Add ASSERT to ensure no subtract underflow 2017-04-14 13:13:51 +08:00
DxeIplPeim MdeModulePkg: Remove unsupported PcdExpression usage in module INF 2017-04-06 12:54:49 +08:00
Pei MdeModulePkg/PeiCore: avoid EFI_IMAGE_MACHINE_TYPE_SUPPORTED to check arch 2017-03-29 11:54:07 +01:00
PiSmmCore MdeModulePkg/PiSmmCore: Fix potentially uninitialized local variable 2017-04-14 13:13:35 +08:00
RuntimeDxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00