未验证 提交 1caf93c2 编写于 作者: S Sam Harwell 提交者: GitHub

Merge pull request #48120 from sharwell/no-collision-resistance

Disable hash collision resistance for user data
......@@ -58,7 +58,7 @@ protected override IJsonRpcMessageFormatter CreateFormatter()
=> ConfigureFormatter((MessagePackFormatter)base.CreateFormatter());
private static readonly MessagePackSerializerOptions s_options = StandardResolverAllowPrivate.Options
.WithSecurity(MessagePackSecurity.UntrustedData)
.WithSecurity(MessagePackSecurity.UntrustedData.WithHashCollisionResistant(false))
.WithResolver(CompositeResolver.Create(
MessagePackFormatters.GetFormatters(),
new IFormatterResolver[] { ImmutableCollectionMessagePackResolver.Instance, StandardResolverAllowPrivate.Instance }));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册