File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ private MessagePackSecurity()
56
56
/// </summary>
57
57
/// <param name="copyFrom">The template to copy from.</param>
58
58
protected MessagePackSecurity ( MessagePackSecurity copyFrom )
59
+ : this ( )
59
60
{
60
61
if ( copyFrom is null )
61
62
{
Original file line number Diff line number Diff line change @@ -125,6 +125,13 @@ public void EqualityComparer_ObjectFallback()
125
125
Assert. NotEqual ( eq . GetHashCode ( o ) , eq . GetHashCode ( new object ( ) ) ) ;
126
126
}
127
127
128
+ [ Fact ]
129
+ public void EqualityComparer_ObjectFallback_AfterCopyCtor( )
130
+ {
131
+ var security = MessagePackSecurity. UntrustedData . WithMaximumObjectGraphDepth ( 15 ) ;
132
+ Assert. NotNull ( security . GetEqualityComparer < object > ( ) ) ;
133
+ }
134
+
128
135
/// <summary>
129
136
/// Verifies that arbitrary other types not known to be hash safe will be rejected.
130
137
/// </summary>
You can’t perform that action at this time.
0 commit comments