Skip to content

Commit b79eb6d

Browse files
committed
C++: Encode string value of data flow nodes in ExecState
1 parent e05227d commit b79eb6d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cpp/ql/src/Security/CWE/CWE-078/ExecTainted.ql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,9 @@ class ExecState extends DataFlow::FlowState {
7575
DataFlow::Node snd;
7676

7777
ExecState() {
78-
this = "ExecState (" + fst.getLocation() + ", " + snd.getLocation() + ")" and
79-
interestingConcatenation(fst, snd)
78+
this =
79+
"ExecState (" + fst.getLocation() + " | " + fst + ", " + snd.getLocation() + " | " + snd + ")" and
80+
interestingConcatenation(fst, snd)
8081
}
8182

8283
DataFlow::Node getFstNode() { result = fst }

0 commit comments

Comments
 (0)