GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [DIFF-INFORMED] Go: UnhandledCloseWritableHandle · github/codeql@188fc0d

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • go/ql/src/InconsistentCode
    • UnhandledCloseWritableHandle.ql
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎go/ql/src/InconsistentCode/UnhandledCloseWritableHandle.ql‎

Copy file name to clipboardExpand all lines: go/ql/src/InconsistentCode/UnhandledCloseWritableHandle.ql
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,14 @@ module UnhandledFileCloseConfig implements DataFlow::ConfigSig {
128128
predicate isSource(DataFlow::Node source) { isWritableFileHandle(source, _) }
129129

130130
predicate isSink(DataFlow::Node sink) { isCloseSink(sink, _) }
131+
132+
predicate observeDiffInformedIncrementalMode() { any() }
133+
134+
Location getASelectedSourceLocation(DataFlow::Node source) {
135+
exists(DataFlow::CallNode openCall | result = openCall.getLocation() |
136+
isWritableFileHandle(source, openCall)
137+
)
138+
}
131139
}
132140

133141
/**

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.