未验证 提交 718f02eb 编写于 作者: E Egor Bogatov 提交者: GitHub

Fix bug in EqualsIgnoreCaseUtf8_Scalar (#89174)

上级 7d9f506c
......@@ -296,13 +296,7 @@ internal static bool EqualsIgnoreCaseUtf8_Scalar(ref byte charA, int lengthA, re
return true;
}
if (!Utf8Utility.UInt32OrdinalIgnoreCaseAscii(valueAu32, valueBu32))
{
return false;
}
byteOffset += 4;
length -= 4;
return Utf8Utility.UInt32OrdinalIgnoreCaseAscii(valueAu32, valueBu32);
}
Debug.Assert(length == 0);
......
......@@ -873,7 +873,6 @@ async Task PerformFloatingPointSerialization(string testString)
[InlineData("\u0020Inf\u0069ni\u0074y")] // " Infinity"
[InlineData("\u002BInf\u0069nity")] // "+Infinity"
#pragma warning restore xUnit1025
[ActiveIssue("https://github.com/dotnet/runtime/issues/89094", TestPlatforms.OSX)]
public async Task FloatingPointConstants_Fail(string testString)
{
string testStringAsJson = $@"""{testString}""";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册