Content-Length: 293563 | pFad | http://github.com/github/codeql/pull/20011/commits/d7094a96b5810a977549ea59940041bfef8db3c6

B9 Overlay: Add XML and Java property discarding by kaspersv · Pull Request #20011 · github/codeql · GitHub
Skip to content

Overlay: Add XML and Java property discarding #20011

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 15, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Overlay: Add discarding of all Java base properties
  • Loading branch information
kaspersv committed Jul 10, 2025
commit d7094a96b5810a977549ea59940041bfef8db3c6
18 changes: 18 additions & 0 deletions java/ql/lib/semmle/code/java/Overlay.qll
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,21 @@ private predicate discardReferableLocatable(@locatable el) {
not drl.existsInOverlay()
)
}

overlay[local]
private predicate baseConfigLocatable(@configLocatable l) { not isOverlay() and l = l }

overlay[local]
private predicate overlayHasConfigLocatables() {
isOverlay() and
exists(@configLocatable el)
}

overlay[discard_entity]
private predicate discardBaseConfigLocatable(@configLocatable el) {
// The properties extractor is currently not incremental, so if
// the overlay contains any config locatables, the overlay should
// contain a full extraction and all config locatables from base
// should be discarded.
baseConfigLocatable(el) and overlayHasConfigLocatables()
}








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/github/codeql/pull/20011/commits/d7094a96b5810a977549ea59940041bfef8db3c6

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy