Skip to content

Commit 36ad5da

Browse files
Update comment
1 parent 8698172 commit 36ad5da

File tree

1 file changed

+3
-3
lines changed
  • src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows

1 file changed

+3
-3
lines changed

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/dataobject.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -2863,7 +2863,7 @@ private object GetDataFromHGLOBAL(string format, IntPtr hglobal)
28632863
{
28642864
data = ReadBitmapSourceFromHandle(hglobal);
28652865
}
2866-
// Limit deserialization to only primitive types, which consist of the following:
2866+
// Limit deserialization to DataFormats that correspond to primitives, which are:
28672867
//
28682868
// DataFormats.CommaSeparatedValue
28692869
// DataFormats.FileDrop
@@ -2877,9 +2877,9 @@ private object GetDataFromHGLOBAL(string format, IntPtr hglobal)
28772877
// DataFormats.WaveAudio
28782878
// DataFormats.Xaml
28792879
// DataFormats.XamlPackage
2880-
// DataFormats.StringFormat
2880+
// DataFormats.StringFormat *
28812881
//
2882-
// Out of these primitive types, we will disallow deserialization of
2882+
// * Out of these, we will disallow deserialization of
28832883
// DataFormats.StringFormat to prevent potentially malicious objects from
28842884
// being deserialized as part of a "text" copy-paste or drag-drop.
28852885
//

0 commit comments

Comments
 (0)