mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Go/UnhandledCloseWritableHandle
This commit is contained in:
@@ -132,7 +132,7 @@ module UnhandledFileCloseConfig implements DataFlow::ConfigSig {
|
||||
predicate observeDiffInformedIncrementalMode() { any() }
|
||||
|
||||
Location getASelectedSourceLocation(DataFlow::Node source) {
|
||||
exists(DataFlow::CallNode openCall | result = openCall.getLocation() |
|
||||
exists(DataFlow::CallNode openCall | result = [openCall.getLocation(), source.getLocation()] |
|
||||
isWritableFileHandle(source, openCall)
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user