forked from PowerShell/PowerShell
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes CIM deserialization bug (PowerShell#4234)
- Loading branch information
1 parent
dc76c86
commit 02737e2
Showing
3 changed files
with
137 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
test/powershell/Modules/Microsoft.PowerShell.Utility/assets/corruptedcim.clixml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"> | ||
<Obj RefId="0"> | ||
<TN RefId="0"> | ||
<T>Microsoft.Management.Infrastructure.CimInstance</T> | ||
<T>System.Object</T> | ||
</TN> | ||
<ToString>SomeClassName</ToString> | ||
<Obj RefId="1"> | ||
<TNRef RefId = "0" /> | ||
<ToString>SomeClassName</ToString> | ||
<Props> | ||
<Nil N="PSComputerName" /> | ||
<Obj N="Test1" RefId="20"> | ||
<TN RefId = "2"> | ||
<T>System.Windows.Markup.XamlReader[], PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35</T> | ||
</TN> | ||
<LST> | ||
<S N="Hash"> | ||
<ResourceDictionary | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:System="clr-namespace:System;assembly=mscorlib" | ||
xmlns:Diag="clr-namespace:System.Diagnostics;assembly=system"> | ||
<ObjectDataProvider x:Key="LaunchCalc" | ||
ObjectType="{x:Type Diag:Process}" | ||
MethodName="Start"> | ||
<ObjectDataProvider.MethodParameters> | ||
<System:String>calc</System:String> | ||
</ObjectDataProvider.MethodParameters> | ||
</ObjectDataProvider> | ||
<SolidColorBrush x:Key="ThemeBrushBlue" Color="{Binding Source={StaticResource LaunchCalc}}"/> | ||
</ResourceDictionary> | ||
</S> | ||
</LST> | ||
</Obj> | ||
</Props> | ||
</Obj> | ||
<MS> | ||
<Obj N="__ClassMetadata" RefId="2"> | ||
<TN RefId="3"> | ||
<T>System.Collections.ArrayList</T> | ||
<T>System.Object</T> | ||
</TN> | ||
<LST> | ||
<Obj RefId="4"> | ||
<MS> | ||
<S N="ClassName">SomeClassName</S> | ||
<S N="Namespace">SomeNamespace</S> | ||
<Nil N="ServerName" /> | ||
<I32 N="Hash">460929192</I32> | ||
<S N="MiXml"><CLASS NAME="SomeClassName"><PROPERTY NAME="test1" TYPE="string"></PROPERTY></CLASS></S> | ||
</MS> | ||
</Obj> | ||
</LST> | ||
</Obj> | ||
</MS> | ||
</Obj> | ||
</Objs> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters