Skip to content

Commit 06c89e7

Browse files
authored
Suppress SM04191 CodeQL flag (#11385)
1 parent 5bfac8a commit 06c89e7

File tree

1 file changed

+1
-1
lines changed
  • src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal

1 file changed

+1
-1
lines changed

src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/DataStreams.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ private void LoadSubStreams(UIElement element, ArrayList subStreams)
265265
{
266266
dataStream.Position = 0;
267267
#pragma warning disable SYSLIB0011 // BinaryFormatter is obsolete
268-
newValue = this.Formatter.Deserialize(dataStream);
268+
newValue = this.Formatter.Deserialize(dataStream); // CodeQL [SM04191] : This is a fallback deserialization to maintain backward compatibility for unsupported NRBF Data Types
269269
#pragma warning restore SYSLIB0011 // BinaryFormatter is obsolete
270270
}
271271

0 commit comments

Comments
 (0)