Skip to content

Commit d361d99

Browse files
committed
Python: add some path returning functions
that were only listed as file sytem accesses.
1 parent 02e41d8 commit d361d99

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python/ql/src/semmle/python/frameworks/Stdlib.qll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,9 @@ private module Stdlib {
887887
/**
888888
* Gets a name of a method of a `pathlib.Path` object that returns a `pathlib.Path` object.
889889
*/
890-
private string pathlibPathMethod() { result in ["absolute", "relative_to"] }
890+
private string pathlibPathMethod() {
891+
result in ["absolute", "relative_to", "rename", "replace", "resolve"]
892+
}
891893

892894
/**
893895
* Gets a name of a method of a `pathlib.Path` object that modifies a `pathlib.Path` object based on new data.

0 commit comments

Comments
 (0)