We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57a0c7a commit 38072c7Copy full SHA for 38072c7
1 file changed
python/ql/src/Resources/FileNotAlwaysClosedQuery.qll
@@ -59,7 +59,7 @@ abstract class FileClose extends DataFlow::CfgNode {
59
// The exception is after the close call.
60
// A full cfg reachability check is not in general feasible for performance, so we approximate it with:
61
// - A basic block reachability check (here) that works if the expression and close call are in different basic blocks
62
- // - A check (in the `WithStatement` override of `gaurdsExceptions`) for the case where the exception call
+ // - A check (in the `WithStatement` override of `guardsExceptions`) for the case where the exception call
63
// is lexically contained in the body of a `with` statement that closes the file.
64
// This may cause FPs in a case such as:
65
// f.close()
0 commit comments