Skip to content

Commit 08fcb98

Browse files
authored
Implement getACall suggestion.
1 parent edd4468 commit 08fcb98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/src/Security/CWE-377/InsecureTemporaryFile.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ FunctionObject temporary_name_function(string mod, string function) {
2727

2828
from CallNode c, string mod, string function
2929
where
30-
c.getFunction().refersTo(temporary_name_function(mod, function))
30+
temporary_name_function(mod, function).getACall() = c
3131
select c, "Call to deprecated function $@.$@ may be insecure.", mod, function

0 commit comments

Comments
 (0)