Skip to content

Commit d2d6b2c

Browse files
committed
apply range pattern patch to cpp
1 parent dbd1148 commit d2d6b2c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

cpp/ql/src/Security/CWE/CWE-497/ExposedSystemData.ql

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -324,10 +324,8 @@ abstract class DataOutput extends Element {
324324
/**
325325
* Data that is output via standard output or standard error.
326326
*/
327-
class StandardOutput extends DataOutput {
328-
StandardOutput() { this instanceof OutputWrite }
329-
330-
override Expr getASource() { result = this.(OutputWrite).getASource() }
327+
class StandardOutput extends DataOutput instanceof OutputWrite {
328+
override Expr getASource() { result = OutputWrite.super.getASource() }
331329
}
332330

333331
private predicate socketCallOrIndirect(FunctionCall call) {

0 commit comments

Comments
 (0)