Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
semmle-extractor-options: /nostdlib /noconfig
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../../../../resources/stubs/Dapper/2.1.66/Dapper.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../../../../resources/stubs/EntityFramework/6.5.1/EntityFramework.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../../../../resources/stubs/System.Data.SqlClient/4.9.0/System.Data.SqlClient.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../../../../resources/stubs/System.Data.SQLite/2.0.2/System.Data.SQLite.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../../../../resources/stubs/Dapper/2.1.100/Dapper.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../../../../resources/stubs/EntityFramework/6.5.2/EntityFramework.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../../../../resources/stubs/System.Data.SqlClient/4.9.1/System.Data.SqlClient.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../../../../resources/stubs/System.Data.SQLite/2.0.4/System.Data.SQLite.csproj
semmle-extractor-options: ${testdir}/../../../../../../resources/stubs/System.Windows.cs
1,848 changes: 1,763 additions & 85 deletions csharp/ql/test/library-tests/dataflow/library/FlowSummaries.expected

Large diffs are not rendered by default.

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions csharp/ql/test/library-tests/dataflow/library/options
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
semmle-extractor-options: /nostdlib /noconfig
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/Newtonsoft.Json/13.0.4/Newtonsoft.Json.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.App.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/Dapper/2.1.66/Dapper.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/ServiceStack/10.0.4/ServiceStack.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/ServiceStack.OrmLite.SqlServer/10.0.4/ServiceStack.OrmLite.SqlServer.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/EntityFramework/6.5.1/EntityFramework.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/System.Drawing.Common/10.0.1/System.Drawing.Common.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/System.Windows.Extensions/10.0.1/System.Windows.Extensions.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/System.Security.Permissions/10.0.1/System.Security.Permissions.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/Dapper/2.1.100/Dapper.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/ServiceStack/10.5.0/ServiceStack.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/ServiceStack.OrmLite.SqlServer/10.5.0/ServiceStack.OrmLite.SqlServer.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/EntityFramework/6.5.2/EntityFramework.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/System.Drawing.Common/11.0.0/System.Drawing.Common.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/System.Windows.Extensions/11.0.0/System.Windows.Extensions.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/System.Security.Permissions/11.0.0/System.Security.Permissions.csproj
semmle-extractor-options: ${testdir}/../../../resources/stubs/System.Web.cs
semmle-extractor-options: ${testdir}/../../../resources/stubs/EntityFrameworkCore.cs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
semmle-extractor-options: /nostdlib /noconfig
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/System.Data.SqlClient/4.9.0/System.Data.SqlClient.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/System.Data.SqlClient/4.9.1/System.Data.SqlClient.csproj
4 changes: 2 additions & 2 deletions csharp/ql/test/library-tests/frameworks/Aws/options
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
semmle-extractor-options: /nostdlib /noconfig
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/Amazon.Lambda.Core/2.8.0/Amazon.Lambda.Core.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/Amazon.Lambda.APIGatewayEvents/2.7.3/Amazon.Lambda.APIGatewayEvents.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/Amazon.Lambda.Core/3.4.0/Amazon.Lambda.Core.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/Amazon.Lambda.APIGatewayEvents/3.0.1/Amazon.Lambda.APIGatewayEvents.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
semmle-extractor-options: /nostdlib /noconfig
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/_frameworks/Microsoft.NETCore.App/Microsoft.NETCore.App.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/EntityFramework/6.5.1/EntityFramework.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/EntityFramework/6.5.2/EntityFramework.csproj
semmle-extractor-options: ${testdir}/../../../resources/stubs/EntityFrameworkCore.cs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
semmle-extractor-options: /nostdlib /noconfig --load-sources-from-project:../../../resources/stubs/NHibernate/5.6.0/NHibernate.csproj
semmle-extractor-options: /nostdlib /noconfig --load-sources-from-project:../../../resources/stubs/NHibernate/5.7.1/NHibernate.csproj
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
semmle-extractor-options: /nostdlib /noconfig
semmle-extractor-options: --load-sources-from-project:../../../resources/stubs/ServiceStack/10.0.4/ServiceStack.csproj
semmle-extractor-options: --load-sources-from-project:../../../resources/stubs/ServiceStack.OrmLite.SqlServer/10.0.4/ServiceStack.OrmLite.SqlServer.csproj
semmle-extractor-options: --load-sources-from-project:../../../resources/stubs/ServiceStack/10.5.0/ServiceStack.csproj
semmle-extractor-options: --load-sources-from-project:../../../resources/stubs/ServiceStack.OrmLite.SqlServer/10.5.0/ServiceStack.OrmLite.SqlServer.csproj
2 changes: 1 addition & 1 deletion csharp/ql/test/library-tests/frameworks/sql/options
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
semmle-extractor-options: /nostdlib /noconfig
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/_frameworks/Microsoft.NETCore.App/Microsoft.NETCore.App.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/System.Data.SqlClient/4.9.0/System.Data.SqlClient.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/System.Data.SqlClient/4.9.1/System.Data.SqlClient.csproj
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
semmle-extractor-options: /nostdlib /noconfig
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../../../resources/stubs/_frameworks/Microsoft.NETCore.App/Microsoft.NETCore.App.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../../../resources/stubs/EntityFramework/6.5.1/EntityFramework.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../../../resources/stubs/EntityFramework/6.5.2/EntityFramework.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
semmle-extractor-options: /nostdlib /noconfig
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../../resources/stubs/_frameworks/Microsoft.NETCore.App/Microsoft.NETCore.App.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../../resources/stubs/System.Data.OleDb/10.0.1/System.Data.OleDb.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../../resources/stubs/EntityFramework/6.5.1/EntityFramework.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../../resources/stubs/System.Data.OleDb/11.0.0/System.Data.OleDb.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../../resources/stubs/EntityFramework/6.5.2/EntityFramework.csproj
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
semmle-extractor-options: /nostdlib /noconfig
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/System.Data.SqlClient/4.9.0/System.Data.SqlClient.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/System.Data.SqlClient/4.9.1/System.Data.SqlClient.csproj
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
semmle-extractor-options: /nostdlib /noconfig
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/System.Data.SqlClient/4.9.0/System.Data.SqlClient.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/System.Data.SqlClient/4.9.1/System.Data.SqlClient.csproj
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
semmle-extractor-options: /nostdlib /noconfig
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../../resources/stubs/System.Data.SqlClient/4.9.0/System.Data.SqlClient.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../../resources/stubs/System.Data.SqlClient/4.9.1/System.Data.SqlClient.csproj
semmle-extractor-options: ${testdir}/../../../../resources/stubs/System.Web.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
semmle-extractor-options: /nostdlib /noconfig
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/Microsoft.Data.SqlClient/6.1.3/Microsoft.Data.SqlClient.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/Microsoft.Data.SqlClient/8.0.0/Microsoft.Data.SqlClient.csproj
semmle-extractor-options: ${testdir}/../../../resources/stubs/System.Windows.cs
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.App.csproj
10 changes: 5 additions & 5 deletions csharp/ql/test/query-tests/Security Features/CWE-089/options
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
semmle-extractor-options: /nostdlib /noconfig
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.App.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/Dapper/2.1.66/Dapper.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/EntityFramework/6.5.1/EntityFramework.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/NHibernate/5.6.0/NHibernate.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/System.Data.SqlClient/4.9.0/System.Data.SqlClient.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/System.Data.SQLite/2.0.2/System.Data.SQLite.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/Dapper/2.1.100/Dapper.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/EntityFramework/6.5.2/EntityFramework.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/NHibernate/5.7.1/NHibernate.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/System.Data.SqlClient/4.9.1/System.Data.SqlClient.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/System.Data.SQLite/2.0.4/System.Data.SQLite.csproj
semmle-extractor-options: ${testdir}/../../../resources/stubs/System.Windows.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
semmle-extractor-options: /nostdlib /noconfig
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/System.Data.SqlClient/4.9.0/System.Data.SqlClient.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/System.Data.SqlClient/4.9.1/System.Data.SqlClient.csproj
semmle-extractor-options: ${testdir}/../../../resources/stubs/System.Web.cs
semmle-extractor-options: ${testdir}/../../../resources/stubs/System.DirectoryServices.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
semmle-extractor-options: /nostdlib /noconfig
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/System.Data.SqlClient/4.9.0/System.Data.SqlClient.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/System.Data.SqlClient/4.9.1/System.Data.SqlClient.csproj
semmle-extractor-options: ${testdir}/../../../resources/stubs/System.Web.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
semmle-extractor-options: /nostdlib /noconfig
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../../resources/stubs/System.Data.SqlClient/4.9.0/System.Data.SqlClient.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../../resources/stubs/System.Data.SqlClient/4.9.1/System.Data.SqlClient.csproj
semmle-extractor-options: ${testdir}/../../../../resources/stubs/System.Web.cs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
semmle-extractor-options: /nostdlib /noconfig
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../../resources/stubs/System.Data.SqlClient/4.9.0/System.Data.SqlClient.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../../resources/stubs/System.Data.SqlClient/4.9.1/System.Data.SqlClient.csproj
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
semmle-extractor-options: /nostdlib /noconfig
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/System.Data.SqlClient/4.9.0/System.Data.SqlClient.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/System.Data.SqlClient/4.9.1/System.Data.SqlClient.csproj
semmle-extractor-options: ${testdir}/../../../resources/stubs/System.Web.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
semmle-extractor-options: /nostdlib /noconfig
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/System.Data.SqlClient/4.9.0/System.Data.SqlClient.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/System.Data.SqlClient/4.9.1/System.Data.SqlClient.csproj
semmle-extractor-options: ${testdir}/../../../resources/stubs/System.Web.cs
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.App.csproj
semmle-extractor-options: ${testdir}/../../../resources/stubs/Microsoft.VisualStudio.TestTools.UnitTesting.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
semmle-extractor-options: /nostdlib /noconfig
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/_frameworks/Microsoft.NETCore.App/Microsoft.NETCore.App.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/System.Data.SqlClient/4.9.0/System.Data.SqlClient.csproj
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/System.Data.SqlClient/4.9.1/System.Data.SqlClient.csproj
semmle-extractor-options: ${testdir}/../../../resources/stubs/System.Web.cs ${testdir}/../../../resources/stubs/System.Windows.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ public interface ILambdaContext
string LogStreamName { get; }
int MemoryLimitInMB { get; }
System.TimeSpan RemainingTime { get; }
virtual Amazon.Lambda.Core.ILambdaSerializer Serializer { get => throw null; }
virtual string TenantId { get => throw null; }
virtual string TraceId { get => throw null; }
virtual System.Collections.Generic.IReadOnlyDictionary<string, string> W3C { get => throw null; }
}
public interface ILambdaLogger
{
Expand Down Expand Up @@ -77,6 +79,7 @@ public interface ILambdaSerializer
}
public static class LambdaLogger
{
public static void ConfigureStructuredLogging(Amazon.Lambda.Core.StructuredLoggingOptions options) => throw null;
public static void Log(string message) => throw null;
public static void Log(string level, string message, params object[] args) => throw null;
public static void Log(Amazon.Lambda.Core.LogLevel level, string message, params object[] args) => throw null;
Expand All @@ -103,11 +106,50 @@ public enum LogLevel
Error = 4,
Critical = 5,
}
namespace ResponseStreaming
{
public class HttpResponseStreamPrelude
{
public System.Collections.Generic.IList<string> Cookies { get => throw null; set { } }
public HttpResponseStreamPrelude() => throw null;
public System.Collections.Generic.IDictionary<string, string> Headers { get => throw null; set { } }
public System.Collections.Generic.IDictionary<string, System.Collections.Generic.IList<string>> MultiValueHeaders { get => throw null; set { } }
public System.Net.HttpStatusCode? StatusCode { get => throw null; set { } }
}
public class LambdaResponseStream : System.IO.Stream
{
public long BytesWritten { get => throw null; }
public override bool CanRead { get => throw null; }
public override bool CanSeek { get => throw null; }
public override bool CanWrite { get => throw null; }
public override void Flush() => throw null;
public override long Length { get => throw null; }
public override long Position { get => throw null; set { } }
public override int Read(byte[] buffer, int offset, int count) => throw null;
public override System.Threading.Tasks.Task<int> ReadAsync(byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) => throw null;
public override long Seek(long offset, System.IO.SeekOrigin origin) => throw null;
public override void SetLength(long value) => throw null;
public override void Write(byte[] buffer, int offset, int count) => throw null;
public System.Threading.Tasks.Task WriteAsync(byte[] buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null;
public override System.Threading.Tasks.Task WriteAsync(byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null;
}
public class LambdaResponseStreamFactory
{
public static Amazon.Lambda.Core.ResponseStreaming.LambdaResponseStream CreateHttpStream(Amazon.Lambda.Core.ResponseStreaming.HttpResponseStreamPrelude prelude) => throw null;
public static Amazon.Lambda.Core.ResponseStreaming.LambdaResponseStream CreateStream() => throw null;
public LambdaResponseStreamFactory() => throw null;
}
}
public static class SnapshotRestore
{
public static void RegisterAfterRestore(System.Func<System.Threading.Tasks.ValueTask> afterRestoreAction) => throw null;
public static void RegisterBeforeSnapshot(System.Func<System.Threading.Tasks.ValueTask> beforeSnapshotAction) => throw null;
}
public class StructuredLoggingOptions
{
public StructuredLoggingOptions() => throw null;
public System.Text.Json.JsonSerializerOptions OverrideSerializerOptions { get => throw null; set { } }
}
}
}
}
Loading
Loading