Tom Hvitved
ca2838b361
Address review comments
2026-03-13 15:38:07 +01:00
Tom Hvitved
7a6ab70091
Rust: Add test for free function with context-based typing
2026-03-13 15:36:06 +01:00
Asger F
7d6e08ecf1
Merge pull request #21461 from github/asger/js-shebang-bun-tsx
...
JS: Recognise bun and tsx in shebang lines
2026-03-13 15:07:12 +01:00
Asger F
dfa6d20072
JS: Replace broken link with plain text
2026-03-13 15:05:07 +01:00
Asger F
821cc0e875
JS: Address PR review comments
...
- Fix misplaced semicolons in test files (was inside comment, moved before it)
- Update QLdoc comments to reference new browser source kind names
- Update docs to list browser source kinds and fix outdated 'only remote' note
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
2026-03-13 14:58:04 +01:00
Tom Hvitved
7094fb07a4
Rust: Replace FunctionPosition with FunctionPositionAdj
2026-03-13 14:37:40 +01:00
Owen Mansel-Chan
52809133f5
Add change notes
2026-03-13 11:10:43 +00:00
Owen Mansel-Chan
056aa342fe
Change @security-severity for log injection queries from 7.8 to 6.1
2026-03-13 10:02:01 +00:00
Owen Mansel-Chan
f58a6e5d3a
Change @security-severity for XSS queries from 6.1 to 7.8
2026-03-13 10:01:02 +00:00
Anders Schack-Mulligen
f11815c633
Merge pull request #21471 from aschackmull/csharp/rm-prebasicblock
...
C#: Delete PreBasicBlocks.
2026-03-13 08:54:06 +01:00
Owen Mansel-Chan
52cfd49087
Merge pull request #21469 from github/dependabot/go_modules/go/extractor/extractor-dependencies-7af763c229
...
Bump the extractor-dependencies group across 1 directory with 2 updates
2026-03-13 07:06:44 +00:00
Anders Schack-Mulligen
8c1c039edf
C#: Delete PreBasicBlocks.
2026-03-13 08:00:08 +01:00
dependabot[bot]
c9e0927992
Bump the extractor-dependencies group across 1 directory with 2 updates
...
Bumps the extractor-dependencies group with 2 updates in the /go/extractor directory: [golang.org/x/mod](https://github.com/golang/mod ) and [golang.org/x/tools](https://github.com/golang/tools ).
Updates `golang.org/x/mod` from 0.33.0 to 0.34.0
- [Commits](https://github.com/golang/mod/compare/v0.33.0...v0.34.0 )
Updates `golang.org/x/tools` from 0.42.0 to 0.43.0
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.42.0...v0.43.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/mod
dependency-version: 0.34.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: extractor-dependencies
- dependency-name: golang.org/x/tools
dependency-version: 0.43.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: extractor-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-03-13 03:04:44 +00:00
Jeroen Ketema
d5f667e585
Merge pull request #21467 from jketema/jketema/swift-linux
...
Swift: Disable stack protector pass
2026-03-12 22:42:51 +01:00
Jeroen Ketema
b758732a28
Merge pull request #21468 from jketema/jketema/swift-lines
...
Swift: Limit successfully extracted lines
2026-03-12 17:24:28 +01:00
Jeroen Ketema
ba3fadbf20
Swift: Rename function
2026-03-12 16:37:13 +01:00
Owen Mansel-Chan
d7d1554461
Merge pull request #21465 from owen-mc/go/small-tweaks
...
Go: improve detection of type expressions when database is missing some type information
2026-03-12 14:58:16 +00:00
Jeroen Ketema
12e0f3f359
Swift: Limit successfully extracted lines
2026-03-12 15:46:23 +01:00
Owen Mansel-Chan
0bb6ff58cc
Merge pull request #21466 from owen-mc/go/add-nil-helper-predicate
...
Go: Add and use `exprRefersToNil` predicate
2026-03-12 14:36:03 +00:00
Jeroen Ketema
b9c0aca11a
Swift: Fix formatting
2026-03-12 15:00:18 +01:00
Jeroen Ketema
ee3674cb80
Swift: Disable stack protector pass
2026-03-12 14:43:05 +01:00
Taus
3ee369b710
Python: Add change note
2026-03-12 13:29:24 +00:00
Taus
e16bb226c0
Python: Fix resolution of relative imports from namespace packages
...
The fix may look a bit obscure, so here's what's going on.
When we see `from . import helper`, we create an `ImportExpr` with level
equal to 1 (corresponding to the number of dots). To resolve such
imports, we compute the name of the enclosing package, as part of
`ImportExpr.qualifiedTopName()`. For this form of import expression, it
is equivalent to `this.getEnclosingModule().getPackageName()`. But
`qualifiedTopName` requires that `valid_module_name` holds for its
result, and this was _not_ the case for namespace packages.
To fix this, we extend `valid_module_name` to include the module names
of _any_ folder, not just regular package (which are the ones where
there's a `__init__.py` in the folder). Note that this doesn't simply
include all folders -- only the ones that result in valid module names
in Python.
2026-03-12 13:29:23 +00:00
Taus
48bf4fd82a
Python: Add test for missing relative import in namespace packages
2026-03-12 13:29:19 +00:00
Owen Mansel-Chan
c271755985
Add and use exprRefersToNil predicate
2026-03-12 13:28:57 +00:00
Owen Mansel-Chan
a16c43881b
Use "database" instead of "snapshot" in QLDocs
2026-03-12 13:28:06 +00:00
Owen Mansel-Chan
39e0382089
Improve QLDoc for isTypeExprTopDown
2026-03-12 13:28:05 +00:00
Owen Mansel-Chan
22e012c6f4
Expand isTypeExprTopDown
...
We should be using all subtypes of `FieldBase`. This allows us to find
more type expressions, and is also simpler to evaluate.
2026-03-12 13:28:03 +00:00
Tom Hvitved
1b6f3a43ef
Rust: Unify type inference logic for associated functions
2026-03-12 10:31:35 +01:00
Asger F
b8c44be599
Add QL test for bun/tsx shebang recognition in TypeScript files
...
Add test files with #!/usr/bin/env bun, #!/usr/bin/env tsx, and
#!/usr/bin/env node shebangs. The query lists extracted .ts files,
verifying that all three shebangs are recognized and the files are
not skipped by the extractor.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
2026-03-12 10:09:56 +01:00
Asger F
84d1828a9c
JavaScript extractor: recognise bun and tsx in shebang lines
...
Update the shebang regexp (renamed NODE_INVOCATION -> JS_INVOCATION) to
also match 'bun' and 'tsx' so that scripts using these runtimes are
correctly identified as JavaScript files.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
2026-03-12 09:35:36 +01:00
Tom Hvitved
ca7017f3d7
Rust: Add more type inference tests
2026-03-12 09:02:40 +01:00
Mario Campos
f2e7dca65c
Merge pull request #21454 from github/mario-campos-patch-1
...
Correct comment about AES crypto algorithm strength
2026-03-11 22:43:21 -05:00
Mario Campos
b9b3b3a0b5
Empty commit for missed Green Check
2026-03-11 22:37:20 -05:00
Jeongsoo Lee
6c792e69b3
Expose the indirection index
2026-03-11 13:53:24 -07:00
Geoffrey White
4a39055322
C++: Change note.
2026-03-11 17:52:34 +00:00
Geoffrey White
6552c849f0
C++: Fix BMN issue in cpp/integer-multiplication-cast-to-long.
2026-03-11 17:49:36 +00:00
Geoffrey White
00d8a10051
C++: Add Function.hasAmbiguousReturnType.
2026-03-11 17:47:32 +00:00
Geoffrey White
da7da80b2b
C++: Add pseudo-buildless test cases (some missing declarations).
2026-03-11 17:47:25 +00:00
Asger F
5db30c9947
JS: Add change note
2026-03-11 15:40:07 +01:00
Mario Campos
6fb10555ff
Correct comment about AES crypto algorithm strength
2026-03-11 09:27:03 -05:00
Ian Lynagh
bbd02b855b
Merge pull request #21424 from github/idrissrio/cpp/overlay/discard
...
C/C++ overlay: update discard mechanism
2026-03-11 13:45:52 +00:00
Idriss Riouak
48a03e2a04
Apply suggestions from code review
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-03-11 14:25:53 +01:00
idrissrio
a92d97744f
C/C++ overlay: address review comment
2026-03-11 14:25:52 +01:00
idrissrio
ef6c1a9968
C/C++ overlay: fix failing header_dependency test
2026-03-11 14:25:50 +01:00
idrissrio
72142b51f7
C/C++ overlay: switch to updated discard strategy
2026-03-11 14:25:49 +01:00
Tom Hvitved
c06d4d2647
Merge pull request #21422 from hvitved/rust/type-mention-refactor
...
Rust: Small refactor in `TypeMention.qll`
2026-03-11 14:01:03 +01:00
Asger F
4a001f960f
JS: Add tests in request forgery queries
2026-03-11 13:53:25 +01:00
Asger F
1253553aec
JS: Add browser source kinds
2026-03-11 13:50:07 +01:00
Ian Lynagh
68dfa5c83b
Merge pull request #21451 from igfoo/igfoo/fix-build
...
Revert "Bump rules_android from 0.6.4 to 0.7.1"
2026-03-11 12:27:20 +00:00