提交 63edf74d 编写于 作者: M MikeBeaton

ocvalidate: Temp revert aaab599b (fix build)

上级 aaab599b
......@@ -314,22 +314,17 @@ BOOLEAN
DataHasProperMasking (
IN CONST VOID *Data,
IN CONST VOID *Mask,
IN UINTN DataSize,
IN UINTN MaskSize
IN UINTN Size
)
{
CONST UINT8 *ByteData;
CONST UINT8 *ByteMask;
UINTN Index;
if (DataSize != MaskSize) {
return FALSE;
}
ByteData = (CONST UINT8 *) Data;
ByteMask = (CONST UINT8 *) Mask;
ByteData = Data;
ByteMask = Mask;
for (Index = 0; Index < DataSize; ++Index) {
for (Index = 0; Index < Size; ++Index) {
//
// Mask should only be set when corresponding bits on Data are inactive.
//
......@@ -389,7 +384,7 @@ ValidatePatch (
FindSize
));
++ErrorCount;
} else if (!DataHasProperMasking (Find, Mask, FindSize, MaskSize)) {
} else if (!DataHasProperMasking (Find, Mask, FindSize)) {
//
// If Mask is set without corresponding bits being active for Find, then error.
//
......@@ -417,7 +412,7 @@ ValidatePatch (
ReplaceSize
));
++ErrorCount;
} else if (!DataHasProperMasking (Replace, ReplaceMask, ReplaceSize, ReplaceMaskSize)) {
} else if (!DataHasProperMasking (Replace, ReplaceMask, ReplaceSize)) {
//
// If ReplaceMask is set without corresponding bits being active for Replace, then error.
//
......
......@@ -139,8 +139,7 @@ AsciiGuidIsLegal (
@param[in] Data Data to be checked.
@param[in] Mask Mask to be applied to Data.
@param[in] DataSize Size of Data.
@param[in] MaskSize Size of Mask.
@param[in] Size Size of Data and Mask.
@retval TRUE If corresponding bits of Mask to Data are active (set to non-zero).
**/
......@@ -148,8 +147,7 @@ BOOLEAN
DataHasProperMasking (
IN CONST VOID *Data,
IN CONST VOID *Mask,
IN UINTN DataSize,
IN UINTN MaskSize
IN UINTN Size
);
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册