We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be175aa commit a826163Copy full SHA for a826163
csharp/ql/lib/semmle/code/csharp/security/dataflow/ZipSlipQuery.qll
@@ -315,8 +315,17 @@ class WrapperSanitizerMethodCall extends SanitizerMethodCall {
315
)
316
}
317
318
+ pragma[nomagic]
319
+ private predicate paramFilePathIndex(int index) {
320
+ index = wrapperMethod.paramFilePath().getIndex()
321
+ }
322
+
323
324
override Expr getFilePathArgument() {
- result = this.getArgument(wrapperMethod.paramFilePath().getIndex())
325
+ exists(int index |
326
+ this.paramFilePathIndex(index) and
327
+ result = this.getArgument(index)
328
+ )
329
330
331
0 commit comments