diff options
author | Star Zeng <star.zeng@intel.com> | 2018-04-13 14:32:11 +0800 |
---|---|---|
committer | Star Zeng <star.zeng@intel.com> | 2018-04-20 14:28:45 +0800 |
commit | 0f3cd8a92b036071892c827c59d23799ca31fef4 (patch) | |
tree | 9d126d6133c2ef3e2aef01967edea6c26b0ed76f /MdeModulePkg | |
parent | 70e3e99f2e27080c6fab12f3e8f6f71c0261bcef (diff) | |
download | edk2-0f3cd8a92b036071892c827c59d23799ca31fef4.zip edk2-0f3cd8a92b036071892c827c59d23799ca31fef4.tar.gz edk2-0f3cd8a92b036071892c827c59d23799ca31fef4.tar.bz2 |
MdeModulePkg DxeCapsuleLibFmp: Fix wrong Index is used
DEBUG((
DEBUG_ERROR,
"ItemOffsetList[%d](0x%lx) < ItemOffsetList[%d](0x%x)\n",
Index,
ItemOffsetList[Index],
Index, // Should be Index - 1
ItemOffsetList[Index - 1]
));
Cc: Jiewen Yao <jiewen.yao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.c b/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.c index 555c597..05fcd92 100644 --- a/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.c +++ b/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.c @@ -250,7 +250,7 @@ ValidateFmpCapsule ( //
if (Index > 0) {
if (ItemOffsetList[Index] <= ItemOffsetList[Index - 1]) {
- DEBUG((DEBUG_ERROR, "ItemOffsetList[%d](0x%lx) < ItemOffsetList[%d](0x%x)\n", Index, ItemOffsetList[Index], Index, ItemOffsetList[Index - 1]));
+ DEBUG((DEBUG_ERROR, "ItemOffsetList[%d](0x%lx) < ItemOffsetList[%d](0x%x)\n", Index, ItemOffsetList[Index], Index - 1, ItemOffsetList[Index - 1]));
return EFI_INVALID_PARAMETER;
}
}
|