mirror of
https://github.com/github/codeql.git
synced 2025-12-19 18:33:16 +01:00
14 lines
314 B
C#
14 lines
314 B
C#
using System.Runtime.Serialization.Formatters.Binary;
|
|
using System.IO;
|
|
using System.Text;
|
|
|
|
class GoodBinaryFormatter
|
|
{
|
|
public static object Deserialize()
|
|
{
|
|
var ds = new BinaryFormatter();
|
|
// GOOD
|
|
return ds.Deserialize(new MemoryStream(Encoding.UTF8.GetBytes("hardcoded")));
|
|
}
|
|
}
|