-
public class ContractlessSample
{
public int MyProperty1 { get; set; }
public int MyProperty2 { get; set; }
}
var data = new ContractlessSample { MyProperty1 = 99, MyProperty2 = 9999 };
MessagePackSerializer.DefaultOptions = MessagePack.Resolvers.ContractlessStandardResolver.Options;
var bin = MessagePackSerializer.Serialize(data);Does this have risk of RCE like BinaryFormatter? |
Beta Was this translation helpful? Give feedback.
Answered by
AArnott
Oct 19, 2024
Replies: 2 comments 3 replies
-
|
We expect Not safe are the |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Blank-c
-
[MessagePack.Union(0, typeof(FooClass))]
[MessagePack.Union(1, typeof(BarClass))]
public interface IUnionSample
{
}Is it possible to dynamically add types to this at runtime? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We expect
ContractlessStandardResolverto be safe.Not safe are the
TypelessContractlessStandardResolverandContractlessStandardResolverAllowPrivatevariants.