10000 Go: Add database source models for `uptrace/bun` and `gogf/gf/database/gdb` by owen-mc · Pull Request #19203 · github/codeql · GitHub
[go: up one dir, main page]

Skip to content

Go: Add database source models for uptrace/bun and gogf/gf/database/gdb #19203

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 9 commits into from
Apr 7, 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
Prev Previous commit
Delete commented out code
  • Loading branch information
owen-mc authored Apr 3, 2025
commit 1ed8fbd811d700125d7e72fc4493115cdec36de7
28 changes: 0 additions & 28 deletions go/ql/lib/semmle/go/frameworks/Bun.qll
Original file line number Diff line number Diff line change
Expand Up @@ -59,32 +59,4 @@ private module Bun {
input = inp and output = outp
}
}
// private class BuilderScan extends TaintTracking::FunctionModel, Method {
// FunctionInput inp;
// FunctionOutput outp;
// BuilderScan() {
// // signature: func (b {Insert,Delete,Select,Update}Builder) Scan(dest ...interface{}) error
// this.hasQualifiedName(packagePath(),
// ["DeleteBuilder", "InsertBuilder", "SelectBuilder", "UpdateBuilder"], "Scan") and
// inp.isReceiver() and
// outp.isParameter(_)
// }
// override predicate hasTaintFlow(FunctionInput input, FunctionOutput output) {
// input = inp and output = outp
// }
// }
// private class BuilderScanContext extends TaintTracking::FunctionModel, Method {
// FunctionInput inp;
// FunctionOutput outp;
// BuilderScanContext() {
// // signature: func (b {Insert,Delete,Select,Update}Builder) ScanContext(ctx context.Context, dest ...interface{}) error
// this.hasQualifiedName(packagePath(),
// ["DeleteBuilder", "InsertBuilder", "SelectBuilder", "UpdateBuilder"], "ScanContext") and
// inp.isReceiver() and
// exists(int i | i > 0 | outp.isParameter(i))
// }
// override predicate hasTaintFlow(FunctionInput input, FunctionOutput output) {
// input = inp and output = outp
// }
// }
}
0