Skip to content

Commit 05a50ad

Browse files
committed
Merge branch 'main' into redsun82/bazel-9
2 parents 40b9084 + 7d17454 commit 05a50ad

File tree

44 files changed

+1195
-738
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1195
-738
lines changed

cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowUtil.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1726,9 +1726,7 @@ private module Cached {
17261726
SsaImpl::ssaFlow(n, succ) and
17271727
bb1 = n.getBasicBlock() and
17281728
bb2 = succ.getBasicBlock() and
1729-
bb1 != bb2 and
1730-
bb2.dominates(bb1) and
1731-
bb1.getASuccessor+() = bb2
1729+
bb2.strictlyDominates(bb1)
17321730
)
17331731
}
17341732

csharp/documentation/library-coverage/coverage.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,5 @@ NHibernate,3,,,,,,,,,,,,3,,,,,,,,,,
4444
Newtonsoft.Json,,,91,,,,,,,,,,,,,,,,,,,73,18
4545
ServiceStack,194,,7,27,,,,,75,,,,92,,,,,,,,,7,
4646
SourceGenerators,,,5,,,,,,,,,,,,,,,,,,,,5
47-
System,59,47,12491,,6,5,12,,,4,1,,31,2,,6,15,17,4,3,,6378,6113
47+
System,59,47,12495,,6,5,12,,,4,1,,31,2,,6,15,17,4,3,,6382,6113
4848
Windows.Security.Cryptography.Core,1,,,,,,,1,,,,,,,,,,,,,,,

csharp/documentation/library-coverage/coverage.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ C# framework & library support
88

99
Framework / library,Package,Flow sources,Taint & value steps,Sinks (total),`CWE-079` :sub:`Cross-site scripting`
1010
`ServiceStack <https://servicestack.net/>`_,"``ServiceStack.*``, ``ServiceStack``",,7,194,
11-
System,"``System.*``, ``System``",47,12491,59,5
11+
System,"``System.*``, ``System``",47,12495,59,5
1212
Others,"``Amazon.Lambda.APIGatewayEvents``, ``Amazon.Lambda.Core``, ``Dapper``, ``ILCompiler``, ``ILLink.RoslynAnalyzer``, ``ILLink.Shared``, ``ILLink.Tasks``, ``Internal.IL``, ``Internal.Pgo``, ``Internal.TypeSystem``, ``Microsoft.ApplicationBlocks.Data``, ``Microsoft.AspNetCore.Components``, ``Microsoft.AspNetCore.Http``, ``Microsoft.AspNetCore.Mvc``, ``Microsoft.AspNetCore.WebUtilities``, ``Microsoft.CSharp``, ``Microsoft.Data.SqlClient``, ``Microsoft.Diagnostics.Tools.Pgo``, ``Microsoft.DotNet.Build.Tasks``, ``Microsoft.DotNet.PlatformAbstractions``, ``Microsoft.EntityFrameworkCore``, ``Microsoft.Extensions.Caching.Distributed``, ``Microsoft.Extensions.Caching.Memory``, ``Microsoft.Extensions.Configuration``, ``Microsoft.Extensions.DependencyInjection``, ``Microsoft.Extensions.DependencyModel``, ``Microsoft.Extensions.Diagnostics.Metrics``, ``Microsoft.Extensions.FileProviders``, ``Microsoft.Extensions.FileSystemGlobbing``, ``Microsoft.Extensions.Hosting``, ``Microsoft.Extensions.Http``, ``Microsoft.Extensions.Logging``, ``Microsoft.Extensions.Options``, ``Microsoft.Extensions.Primitives``, ``Microsoft.Interop``, ``Microsoft.JSInterop``, ``Microsoft.NET.Build.Tasks``, ``Microsoft.VisualBasic``, ``Microsoft.Win32``, ``Mono.Linker``, ``MySql.Data.MySqlClient``, ``NHibernate``, ``Newtonsoft.Json``, ``SourceGenerators``, ``Windows.Security.Cryptography.Core``",60,2406,162,4
13-
Totals,,107,14904,415,9
13+
Totals,,107,14908,415,9
1414

go/documentation/library-coverage/coverage.csv

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package,sink,source,summary,sink:command-injection,sink:credentials-key,sink:jwt,sink:log-injection,sink:nosql-injection,sink:path-injection,sink:regex-use[0],sink:regex-use[1],sink:regex-use[c],sink:request-forgery,sink:request-forgery[TCP Addr + Port],sink:sql-injection,sink:url-redirection,sink:url-redirection[0],sink:url-redirection[receiver],sink:xpath-injection,source:commandargs,source:database,source:environment,source:file,source:remote,source:stdin,summary:taint,summary:value
2-
,,,8,,,,,,,,,,,,,,,,,,,,,,,3,5
2+
,,,9,,,,,,,,,,,,,,,,,,,,,,,3,6
33
archive/tar,,,5,,,,,,,,,,,,,,,,,,,,,,,5,
44
archive/zip,,,6,,,,,,,,,,,,,,,,,,,,,,,6,
55
bufio,,,17,,,,,,,,,,,,,,,,,,,,,,,17,
6-
bytes,,,43,,,,,,,,,,,,,,,,,,,,,,,43,
6+
bytes,,,44,,,,,,,,,,,,,,,,,,,,,,,44,
77
clevergo.tech/clevergo,1,,,,,,,,,,,,,,,,,1,,,,,,,,,
88
cloud.google.com/go/bigquery,1,,,,,,,,,,,,,,1,,,,,,,,,,,,
99
compress/bzip2,,,1,,,,,,,,,,,,,,,,,,,,,,,1,
@@ -18,7 +18,7 @@ context,,,5,,,,,,,,,,,,,,,,,,,,,,,5,
1818
crypto,,,10,,,,,,,,,,,,,,,,,,,,,,,10,
1919
database/sql,30,18,12,,,,,,,,,,,,30,,,,,,18,,,,,12,
2020
encoding,,,81,,,,,,,,,,,,,,,,,,,,,,,81,
21-
errors,,,3,,,,,,,,,,,,,,,,,,,,,,,3,
21+
errors,,,4,,,,,,,,,,,,,,,,,,,,,,,4,
2222
expvar,,,6,,,,,,,,,,,,,,,,,,,,,,,6,
2323
fmt,3,,16,,,,3,,,,,,,,,,,,,,,,,,,16,
2424
github.com/ChrisTrenkamp/goxpath,3,,,,,,,,,,,,,,,,,,3,,,,,,,,

go/documentation/library-coverage/coverage.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Go framework & library support
3232
`Revel <http://revel.github.io/>`_,"``github.com/revel/revel*``, ``github.com/robfig/revel*``",46,20,4
3333
`SendGrid <https://github.com/sendgrid/sendgrid-go>`_,``github.com/sendgrid/sendgrid-go*``,,1,
3434
`Squirrel <https://github.com/Masterminds/squirrel>`_,"``github.com/Masterminds/squirrel*``, ``github.com/lann/squirrel*``, ``gopkg.in/Masterminds/squirrel``",81,,96
35-
`Standard library <https://pkg.go.dev/std>`_,"````, ``archive/*``, ``bufio``, ``bytes``, ``cmp``, ``compress/*``, ``container/*``, ``context``, ``crypto``, ``crypto/*``, ``database/*``, ``debug/*``, ``embed``, ``encoding``, ``encoding/*``, ``errors``, ``expvar``, ``flag``, ``fmt``, ``go/*``, ``hash``, ``hash/*``, ``html``, ``html/*``, ``image``, ``image/*``, ``index/*``, ``io``, ``io/*``, ``log``, ``log/*``, ``maps``, ``math``, ``math/*``, ``mime``, ``mime/*``, ``net``, ``net/*``, ``os``, ``os/*``, ``path``, ``path/*``, ``plugin``, ``reflect``, ``reflect/*``, ``regexp``, ``regexp/*``, ``slices``, ``sort``, ``strconv``, ``strings``, ``sync``, ``sync/*``, ``syscall``, ``syscall/*``, ``testing``, ``testing/*``, ``text/*``, ``time``, ``time/*``, ``unicode``, ``unicode/*``, ``unsafe``, ``weak``",52,609,104
35+
`Standard library <https://pkg.go.dev/std>`_,"````, ``archive/*``, ``bufio``, ``bytes``, ``cmp``, ``compress/*``, ``container/*``, ``context``, ``crypto``, ``crypto/*``, ``database/*``, ``debug/*``, ``embed``, ``encoding``, ``encoding/*``, ``errors``, ``expvar``, ``flag``, ``fmt``, ``go/*``, ``hash``, ``hash/*``, ``html``, ``html/*``, ``image``, ``image/*``, ``index/*``, ``io``, ``io/*``, ``log``, ``log/*``, ``maps``, ``math``, ``math/*``, ``mime``, ``mime/*``, ``net``, ``net/*``, ``os``, ``os/*``, ``path``, ``path/*``, ``plugin``, ``reflect``, ``reflect/*``, ``regexp``, ``regexp/*``, ``slices``, ``sort``, ``strconv``, ``strings``, ``sync``, ``sync/*``, ``syscall``, ``syscall/*``, ``testing``, ``testing/*``, ``text/*``, ``time``, ``time/*``, ``unicode``, ``unicode/*``, ``unsafe``, ``weak``",52,612,104
3636
`XORM <https://xorm.io>`_,"``github.com/go-xorm/xorm*``, ``xorm.io/xorm*``",,,68
3737
`XPath <https://github.com/antchfx/xpath>`_,``github.com/antchfx/xpath*``,,,4
3838
`appleboy/gin-jwt <https://github.com/appleboy/gin-jwt>`_,``github.com/appleboy/gin-jwt*``,,,1
@@ -74,5 +74,5 @@ Go framework & library support
7474
`xpathparser <https://github.com/santhosh-tekuri/xpathparser>`_,``github.com/santhosh-tekuri/xpathparser*``,,,2
7575
`yaml <https://gopkg.in/yaml.v3>`_,``gopkg.in/yaml*``,,9,
7676
`zap <https://go.uber.org/zap>`_,``go.uber.org/zap*``,,11,33
77-
Totals,,688,1069,1557
77+
Totals,,688,1072,1557
7878

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
category: deprecated
3+
---
4+
* The `UnreachableBlocks.qll` library has been deprecated.

java/ql/lib/semmle/code/java/controlflow/UnreachableBlocks.qll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
/**
2+
* DEPRECATED: This module is no longer maintained, and will be removed in a future release.
3+
*
24
* Provides classes and predicates for identifying unreachable blocks under a "closed-world" assumption.
35
*/
46
overlay[local?]
5-
module;
7+
deprecated module;
68

79
import java
810
import semmle.code.java.controlflow.Guards

java/ql/lib/semmle/code/java/controlflow/unreachableblocks/ExcludeDebuggingProfilingLogging.qll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
/**
2+
* DEPRECATED: This module is no longer maintained, and will be removed in a future release.
3+
*/
14
overlay[local?]
2-
module;
5+
deprecated module;
36

47
import java
58
import semmle.code.java.controlflow.UnreachableBlocks

java/ql/test/library-tests/unreachableblocks/UnreachableBlocks.expected

Lines changed: 0 additions & 12 deletions
This file was deleted.

java/ql/test/library-tests/unreachableblocks/UnreachableBlocks.ql

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)