Skip to content

Commit

Permalink
[ashmind/SharpLab#1349] Fix security warning when building under .NET 9
Browse files Browse the repository at this point in the history
  • Loading branch information
ashmind committed Nov 18, 2024
1 parent 21855ed commit 192401e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 81 deletions.
5 changes: 5 additions & 0 deletions Php/Php.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
TOOD: Try removing after upgrading Peachpie.CodeAnalysis/Peachpie.App.
-->
<PackageReference Include="System.Data.SqlClient" Version="4.9.0" />
<!--
Avoids vulnerability in version referenced by other dependencies
TOOD: Try removing after upgrading Peachpie.CodeAnalysis/Peachpie.App.
-->
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>

<Target Name="ChangeAliasesOfStrongNameAssemblies" BeforeTargets="FindReferenceAssembliesForReferences;ResolveReferences">
Expand Down
87 changes: 6 additions & 81 deletions Php/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
"Microsoft.NETCore.Platforms": "1.1.0"
}
},
"Newtonsoft.Json": {
"type": "Direct",
"requested": "[13.0.3, )",
"resolved": "13.0.3",
"contentHash": "HrC5BXdl00IP9zeV+0Z848QWPAoCr9P3bDEZguI+gkLcBKAOxix/tLEAAHC+UvDNPv4a2d18lOReHMOagPa+zQ=="
},
"Peachpie.App": {
"type": "Direct",
"requested": "[0.9.0-CI01101, )",
Expand Down Expand Up @@ -153,29 +159,6 @@
"System.Composition": "1.0.31"
}
},
"Microsoft.CSharp": {
"type": "Transitive",
"resolved": "4.0.1",
"contentHash": "17h8b5mXa87XYKrrVqdgZ38JefSUqLChUQpXgSnpzsM0nDOhE40FTeNWOJ/YmySGV6tG6T8+hjz6vxbknHJr6A==",
"dependencies": {
"System.Collections": "4.0.11",
"System.Diagnostics.Debug": "4.0.11",
"System.Dynamic.Runtime": "4.0.11",
"System.Globalization": "4.0.11",
"System.Linq": "4.1.0",
"System.Linq.Expressions": "4.1.0",
"System.ObjectModel": "4.0.12",
"System.Reflection": "4.1.0",
"System.Reflection.Extensions": "4.0.1",
"System.Reflection.Primitives": "4.0.1",
"System.Reflection.TypeExtensions": "4.1.0",
"System.Resources.ResourceManager": "4.0.1",
"System.Runtime": "4.1.0",
"System.Runtime.Extensions": "4.1.0",
"System.Runtime.InteropServices": "4.1.0",
"System.Threading": "4.0.11"
}
},
"Microsoft.DiaSymReader": {
"type": "Transitive",
"resolved": "1.3.0",
Expand Down Expand Up @@ -249,35 +232,6 @@
"System.Threading.Tasks.Extensions": "4.3.0"
}
},
"Newtonsoft.Json": {
"type": "Transitive",
"resolved": "9.0.1",
"contentHash": "U82mHQSKaIk+lpSVCbWYKNavmNH1i5xrExDEquU1i6I5pV6UMOqRnJRSlKO3cMPfcpp0RgDY+8jUXHdQ4IfXvw==",
"dependencies": {
"Microsoft.CSharp": "4.0.1",
"System.Collections": "4.0.11",
"System.Diagnostics.Debug": "4.0.11",
"System.Dynamic.Runtime": "4.0.11",
"System.Globalization": "4.0.11",
"System.IO": "4.1.0",
"System.Linq": "4.1.0",
"System.Linq.Expressions": "4.1.0",
"System.ObjectModel": "4.0.12",
"System.Reflection": "4.1.0",
"System.Reflection.Extensions": "4.0.1",
"System.Resources.ResourceManager": "4.0.1",
"System.Runtime": "4.1.0",
"System.Runtime.Extensions": "4.1.0",
"System.Runtime.Serialization.Primitives": "4.1.1",
"System.Text.Encoding": "4.0.11",
"System.Text.Encoding.Extensions": "4.0.11",
"System.Text.RegularExpressions": "4.1.0",
"System.Threading": "4.0.11",
"System.Threading.Tasks": "4.0.11",
"System.Xml.ReaderWriter": "4.0.11",
"System.Xml.XDocument": "4.0.11"
}
},
"Peachpie.Library": {
"type": "Transitive",
"resolved": "0.9.0-CI01101",
Expand Down Expand Up @@ -588,16 +542,6 @@
"System.Threading": "4.3.0"
}
},
"System.Diagnostics.Tools": {
"type": "Transitive",
"resolved": "4.0.1",
"contentHash": "xBfJ8pnd4C17dWaC9FM6aShzbJcRNMChUMD42I6772KGGrqaFdumwhn9OdM68erj1ueNo3xdQ1EwiFjK5k8p0g==",
"dependencies": {
"Microsoft.NETCore.Platforms": "1.0.1",
"Microsoft.NETCore.Targets": "1.0.1",
"System.Runtime": "4.1.0"
}
},
"System.Diagnostics.Tracing": {
"type": "Transitive",
"resolved": "4.3.0",
Expand Down Expand Up @@ -1268,25 +1212,6 @@
"System.Threading.Tasks.Extensions": "4.3.0"
}
},
"System.Xml.XDocument": {
"type": "Transitive",
"resolved": "4.0.11",
"contentHash": "Mk2mKmPi0nWaoiYeotq1dgeNK1fqWh61+EK+w4Wu8SWuTYLzpUnschb59bJtGywaPq7SmTuPf44wrXRwbIrukg==",
"dependencies": {
"System.Collections": "4.0.11",
"System.Diagnostics.Debug": "4.0.11",
"System.Diagnostics.Tools": "4.0.1",
"System.Globalization": "4.0.11",
"System.IO": "4.1.0",
"System.Reflection": "4.1.0",
"System.Resources.ResourceManager": "4.0.1",
"System.Runtime": "4.1.0",
"System.Runtime.Extensions": "4.1.0",
"System.Text.Encoding": "4.0.11",
"System.Threading": "4.0.11",
"System.Xml.ReaderWriter": "4.0.11"
}
},
"System.Xml.XmlDocument": {
"type": "Transitive",
"resolved": "4.3.0",
Expand Down
2 changes: 2 additions & 0 deletions Tests/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -1845,6 +1845,7 @@
"type": "Project",
"dependencies": {
"MirrorSharp.Common": "[3.0.9, )",
"Newtonsoft.Json": "[13.0.3, )",
"Peachpie.App": "[0.9.0-CI01101, )",
"Peachpie.CodeAnalysis": "[0.9.0-CI01101, )",
"System.Data.SqlClient": "[4.9.0, )"
Expand Down Expand Up @@ -2628,6 +2629,7 @@
"type": "Project",
"dependencies": {
"MirrorSharp.Common": "[3.0.9, )",
"Newtonsoft.Json": "[13.0.3, )",
"Peachpie.App": "[0.9.0-CI01101, )",
"Peachpie.CodeAnalysis": "[0.9.0-CI01101, )",
"System.Data.SqlClient": "[4.9.0, )"
Expand Down

0 comments on commit 192401e

Please sign in to comment.