File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed
javascript/ql/lib/semmle/javascript Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -210,12 +210,7 @@ module API {
210210 * This is similar to `asSink()` but additionally includes nodes that transitively reach a sink by data flow.
211211 * See `asSink()` for examples.
212212 */
213- DataFlow:: Node getAValueReachingSink ( ) {
214- result = Impl:: trackDefNode ( this .asSink ( ) )
215- or
216- // in case `asSink()` is not a `SourceNode`.
217- result = this .asSink ( )
218- }
213+ DataFlow:: Node getAValueReachingSink ( ) { result = Impl:: trackDefNode ( this .asSink ( ) ) }
219214
220215 /** DEPRECATED. This predicate has been renamed to `asSink`. */
221216 deprecated DataFlow:: Node getARhs ( ) { result = this .asSink ( ) }
Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ module UnsafeShellCommandConstruction {
169169 or
170170 exists ( API:: Node node |
171171 node .asSink ( ) = sys .getOptionsArg ( ) and
172- node .getMember ( "shell" ) .getAValueReachingSink ( ) .mayHaveBooleanValue ( true )
172+ node .getMember ( "shell" ) .asSink ( ) .mayHaveBooleanValue ( true )
173173 )
174174 }
175175
You can’t perform that action at this time.
0 commit comments