Skip to content

Commit 170242f

Browse files
authored
Apply suggestions from code review
1 parent 6e07076 commit 170242f

File tree

8 files changed

+25
-35
lines changed

8 files changed

+25
-35
lines changed

go/ql/lib/CHANGELOG.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
### Breaking Changes
44

5-
The signature of `allowImplicitRead` on `DataFlow::Configuration` and `TaintTracking::Configuration` has changed from `allowImplicitRead(DataFlow::Node node, DataFlow::Content c)` to `allowImplicitRead(DataFlow::Node node, DataFlow::ContentSet c)`.
5+
* The signature of `allowImplicitRead` on `DataFlow::Configuration` and `TaintTracking::Configuration` has changed from `allowImplicitRead(DataFlow::Node node, DataFlow::Content c)` to `allowImplicitRead(DataFlow::Node node, DataFlow::ContentSet c)`.
66

77
### Deprecated APIs
88

@@ -11,11 +11,7 @@ The signature of `allowImplicitRead` on `DataFlow::Configuration` and `TaintTrac
1111
### Minor Analysis Improvements
1212

1313
* The predicate `getNumParameter` on `FuncTypeExpr` has been changed to actually give the number of parameters. It previously gave the number of parameter declarations. `getNumParameterDecl` has been introduced to preserve this functionality.
14-
The definition of `mayHaveSideEffects` for `ReturnStmt` was incorrect when more
15-
than one expression was being returned. Such return statements were
16-
effectively considered to never have side effects. This has now been fixed.
17-
In rare circumstances `globalValueNumber` may have incorrectly treated two
18-
values as the same when they were in fact distinct.
14+
* The definition of `mayHaveSideEffects` for `ReturnStmt` was incorrect when more than one expression was being returned. Such return statements were effectively considered to never have side effects. This has now been fixed. In rare circumstances `globalValueNumber` may have incorrectly treated two values as the same when they were in fact distinct.
1915
* Queries that care about SQL, such as `go/sql-injection`, now recognise SQL-consuming functions belonging to the `gorqlite` and `GoFrame` packages.
2016
* `rsync` has been added to the list of commands which may evaluate its parameters as a shell command.
2117

go/ql/lib/change-notes/released/0.4.0.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
### Breaking Changes
44

5-
The signature of `allowImplicitRead` on `DataFlow::Configuration` and `TaintTracking::Configuration` has changed from `allowImplicitRead(DataFlow::Node node, DataFlow::Content c)` to `allowImplicitRead(DataFlow::Node node, DataFlow::ContentSet c)`.
5+
* The signature of `allowImplicitRead` on `DataFlow::Configuration` and `TaintTracking::Configuration` has changed from `allowImplicitRead(DataFlow::Node node, DataFlow::Content c)` to `allowImplicitRead(DataFlow::Node node, DataFlow::ContentSet c)`.
66

77
### Deprecated APIs
88

@@ -11,13 +11,9 @@ The signature of `allowImplicitRead` on `DataFlow::Configuration` and `TaintTrac
1111
### Minor Analysis Improvements
1212

1313
* The predicate `getNumParameter` on `FuncTypeExpr` has been changed to actually give the number of parameters. It previously gave the number of parameter declarations. `getNumParameterDecl` has been introduced to preserve this functionality.
14-
The definition of `mayHaveSideEffects` for `ReturnStmt` was incorrect when more
15-
than one expression was being returned. Such return statements were
16-
effectively considered to never have side effects. This has now been fixed.
17-
In rare circumstances `globalValueNumber` may have incorrectly treated two
18-
values as the same when they were in fact distinct.
14+
* The definition of `mayHaveSideEffects` for `ReturnStmt` was incorrect when more than one expression was being returned. Such return statements were effectively considered to never have side effects. This has now been fixed. In rare circumstances `globalValueNumber` may have incorrectly treated two values as the same when they were in fact distinct.
1915
* Queries that care about SQL, such as `go/sql-injection`, now recognise SQL-consuming functions belonging to the `gorqlite` and `GoFrame` packages.
20-
* `rsync` has been added to the list of commands which may evaluate its parameters as a shell command.
16+
* `rsync` has been added to the list of commands which may evaluate its parameters as a shell command.
2117

2218
### Bug Fixes
2319

javascript/ql/lib/CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
### New Features
44

5-
- Improved support for [Restify](http://restify.com/) framework, leading to more results when scanning applications developed with this framework.
6-
- Added support for the [Spife](https://github.com/npm/spife) framework.
5+
* Improved support for [Restify](http://restify.com/) framework, leading to more results when scanning applications developed with this framework.
6+
* Added support for the [Spife](https://github.com/npm/spife) framework.
77

88
### Minor Analysis Improvements
99

1010
* Deleted the deprecated `Instance` class from the `Vue` module.
1111
* Deleted the deprecated `VHtmlSourceWrite` class from `DomBasedXssQuery.qll`.
1212
* Deleted all the deprecated `[QueryName].qll` files from the `javascript/ql/lib/semmle/javascript/security/dataflow` folder, use the corresponding `[QueryName]Query.qll` files instead.
13-
* The ReDoS libraries in `semmle.code.javascript.security.regexp` has been moved to a shared pack inside the `shared/` folder, and the previous location has been deprecated.
13+
* The ReDoS libraries in `semmle.code.javascript.security.regexp` has been moved to a shared pack inside the `shared/` folder, and the previous location has been deprecated.
1414

1515
## 0.3.6
1616

javascript/ql/lib/change-notes/released/0.4.0.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
### New Features
44

5-
- Improved support for [Restify](http://restify.com/) framework, leading to more results when scanning applications developed with this framework.
6-
- Added support for the [Spife](https://github.com/npm/spife) framework.
5+
* Improved support for [Restify](http://restify.com/) framework, leading to more results when scanning applications developed with this framework.
6+
* Added support for the [Spife](https://github.com/npm/spife) framework.
77

88
### Minor Analysis Improvements
99

1010
* Deleted the deprecated `Instance` class from the `Vue` module.
1111
* Deleted the deprecated `VHtmlSourceWrite` class from `DomBasedXssQuery.qll`.
1212
* Deleted all the deprecated `[QueryName].qll` files from the `javascript/ql/lib/semmle/javascript/security/dataflow` folder, use the corresponding `[QueryName]Query.qll` files instead.
13-
* The ReDoS libraries in `semmle.code.javascript.security.regexp` has been moved to a shared pack inside the `shared/` folder, and the previous location has been deprecated.
13+
* The ReDoS libraries in `semmle.code.javascript.security.regexp` has been moved to a shared pack inside the `shared/` folder, and the previous location has been deprecated.

python/ql/lib/CHANGELOG.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66

77
### Minor Analysis Improvements
88

9-
- Added `subprocess.getoutput` and `subprocess.getoutputstatus` as new command injection sinks for the StdLib.
10-
* The data-flow library has been rewritten to no longer rely on the points-to analysis in order to
11-
resolve references to modules. Improvements in the module resolution can lead to more results.
9+
* Added `subprocess.getoutput` and `subprocess.getoutputstatus` as new command injection sinks for the StdLib.
10+
* The data-flow library has been rewritten to no longer rely on the points-to analysis in order to resolve references to modules. Improvements in the module resolution can lead to more results.
1211
* Deleted the deprecated `importNode` predicate from the `DataFlowUtil.qll` file.
1312
* Deleted the deprecated features from `PEP249.qll` that were not inside the `PEP249` module.
1413
* Deleted the deprecated `werkzeug` from the `Werkzeug` module in `Werkzeug.qll`.

python/ql/lib/change-notes/released/0.7.0.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66

77
### Minor Analysis Improvements
88

9-
- Added `subprocess.getoutput` and `subprocess.getoutputstatus` as new command injection sinks for the StdLib.
10-
* The data-flow library has been rewritten to no longer rely on the points-to analysis in order to
11-
resolve references to modules. Improvements in the module resolution can lead to more results.
9+
* Added `subprocess.getoutput` and `subprocess.getoutputstatus` as new command injection sinks for the StdLib.
10+
* The data-flow library has been rewritten to no longer rely on the points-to analysis in order to resolve references to modules. Improvements in the module resolution can lead to more results.
1211
* Deleted the deprecated `importNode` predicate from the `DataFlowUtil.qll` file.
1312
* Deleted the deprecated features from `PEP249.qll` that were not inside the `PEP249` module.
1413
* Deleted the deprecated `werkzeug` from the `Werkzeug` module in `Werkzeug.qll`.

ruby/ql/lib/CHANGELOG.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ there will be flow from `y` to the field `@field` on the constructed `C` object.
1717
### Minor Analysis Improvements
1818

1919
* Calls to `Kernel.load`, `Kernel.require`, `Kernel.autoload` are now modeled as sinks for path injection.
20-
* Calls to `mail` and `inbound_mail` in `ActionMailbox` controllers are now considered sources of remote input.
21-
* Calls to `GlobalID::Locator.locate` and its variants are now recognized as instances of `OrmInstantiation`.
20+
* Calls to `mail` and `inbound_mail` in `ActionMailbox` controllers are now considered sources of remote input.
21+
* Calls to `GlobalID::Locator.locate` and its variants are now recognized as instances of `OrmInstantiation`.
2222
* Data flow through the `ActiveSupport` extensions `Enumerable#index_with`, `Enumerable#pick`, `Enumerable#pluck` and `Enumerable#sole` are now modeled.
2323
* When resolving a method call, the analysis now also searches in sub-classes of the receiver's type.
24-
* Taint flow is now tracked through many common JSON parsing and generation methods.
25-
* The ReDoS libraries in `codeql.ruby.security.regexp` has been moved to a shared pack inside the `shared/` folder, and the previous location has been deprecated.
26-
* String literals and arrays of string literals in case expression patterns are now recognised as barrier guards.
24+
* Taint flow is now tracked through many common JSON parsing and generation methods.
25+
* The ReDoS libraries in `codeql.ruby.security.regexp` has been moved to a shared pack inside the `shared/` folder, and the previous location has been deprecated.
26+
* String literals and arrays of string literals in case expression patterns are now recognised as barrier guards.
2727

2828
## 0.4.6
2929

ruby/ql/lib/change-notes/released/0.5.0.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ there will be flow from `y` to the field `@field` on the constructed `C` object.
1717
### Minor Analysis Improvements
1818

1919
* Calls to `Kernel.load`, `Kernel.require`, `Kernel.autoload` are now modeled as sinks for path injection.
20-
* Calls to `mail` and `inbound_mail` in `ActionMailbox` controllers are now considered sources of remote input.
21-
* Calls to `GlobalID::Locator.locate` and its variants are now recognized as instances of `OrmInstantiation`.
20+
* Calls to `mail` and `inbound_mail` in `ActionMailbox` controllers are now considered sources of remote input.
21+
* Calls to `GlobalID::Locator.locate` and its variants are now recognized as instances of `OrmInstantiation`.
2222
* Data flow through the `ActiveSupport` extensions `Enumerable#index_with`, `Enumerable#pick`, `Enumerable#pluck` and `Enumerable#sole` are now modeled.
2323
* When resolving a method call, the analysis now also searches in sub-classes of the receiver's type.
24-
* Taint flow is now tracked through many common JSON parsing and generation methods.
25-
* The ReDoS libraries in `codeql.ruby.security.regexp` has been moved to a shared pack inside the `shared/` folder, and the previous location has been deprecated.
26-
* String literals and arrays of string literals in case expression patterns are now recognised as barrier guards.
24+
* Taint flow is now tracked through many common JSON parsing and generation methods.
25+
* The ReDoS libraries in `codeql.ruby.security.regexp` has been moved to a shared pack inside the `shared/` folder, and the previous location has been deprecated.
26+
* String literals and arrays of string literals in case expression patterns are now recognised as barrier guards.

0 commit comments

Comments
 (0)