mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-23 13:44:33 +02:00
MdePkg BaseUefiDecompressLib: Fix UEFI Decompression logic issue
https://bugzilla.tianocore.org/show_bug.cgi?id=1317 This is a regression issue caused by 2ec7953d49677142c5f7552e9e3d96fb406ba0c4. In Decode() function, once mOutBuf is fully filled, Decode() should return. Current logic misses the checker of mOutBuf after while() loop. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com> Cc: Michael Kinney <michael.d.kinney@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
This commit is contained in:
parent
5e45a1fdcf
commit
1c4cecc9fd
@ -641,6 +641,12 @@ Decode (
|
|||||||
|
|
||||||
BytesRemain--;
|
BytesRemain--;
|
||||||
}
|
}
|
||||||
|
//
|
||||||
|
// Once mOutBuf is fully filled, directly return
|
||||||
|
//
|
||||||
|
if (Sd->mOutBuf >= Sd->mOrigSize) {
|
||||||
|
goto Done;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user