Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a536328 commit 273848cCopy full SHA for 273848c
1 file changed
cpp/ql/src/experimental/Security/CWE/CWE-409-DecompressionBomb/DecompressionBombs.ql
@@ -115,12 +115,10 @@ module DecompressionTaintConfig implements DataFlow::StateConfigSig {
115
(
116
exists(FunctionCall fc | fc.getTarget() instanceof GzopenFunction |
117
fc.getArgument(0) = source.asExpr() and
118
- // arg 0 can be a path string whichwe must do following check
+ // arg 0 can be a path string which we must do following check
119
not fc.getArgument(0).isConstant()
120
)
121
or
122
- // IDK whether it is good to use all file decriptors function returns as source or not
123
- // because we can do more sanitization from fd function sources
124
exists(FunctionCall fc | fc.getTarget() instanceof GzdopenFunction |
125
fc.getArgument(0) = source.asExpr()
126
0 commit comments