提交 34b34db8 编写于 作者: N Nikolai SAOUKH

OpenCorePkg/Library/OcCompressionLib: fix signed/unsigned compare

上级 cdf38acc
...@@ -93,7 +93,7 @@ DecompressMaskedRLE24 ( ...@@ -93,7 +93,7 @@ DecompressMaskedRLE24 (
// //
// Early exit on not enough bytes to read or fill. // Early exit on not enough bytes to read or fill.
// //
if ((UINT32) (SrcEnd - Src) < ControlValue || DstEnd - DstCur < ControlValue * sizeof (UINT32)) { if ((UINT32) (SrcEnd - Src) < ControlValue || (UINT32) (DstEnd - DstCur) < ControlValue * sizeof (UINT32)) {
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册