Anders Schack-Mulligen
f931c8d836
Go: Accept qltest .expected file changes.
2024-05-22 15:39:47 +02:00
Anders Schack-Mulligen
8db9187698
Go: Accept qltest .expected file changes (interesting).
2024-05-22 15:38:01 +02:00
Rasmus Wriedt Larsen
2451a6d3f6
Accept .expected changes
2024-05-21 14:47:42 +02:00
Tom Hvitved
454687d583
Data flow: Synthesize parameter return nodes
2024-05-21 14:47:42 +02:00
Erik Krogh Kristensen
bfc95c6f13
Merge pull request #16510 from erik-krogh/go-command
...
Go: Update the QHelp for `go/command-injection`.
2024-05-17 17:45:10 +02:00
erik-krogh
384649b336
changes based on review, and improve the new command-injection test
2024-05-17 08:38:54 +02:00
erik-krogh
2848ccf0e2
fix frontend errors that Go complained about
2024-05-16 20:06:26 +02:00
erik-krogh
08c0d8ec60
autoformat go files
2024-05-16 19:59:40 +02:00
erik-krogh
9aeebc6f39
update the QHelp to add a "--" example
2024-05-16 19:49:22 +02:00
Owen Mansel-Chan
2dd42f7aa5
Merge pull request #16509 from owen-mc/go/fix-missing-underlying-types
...
Go: make two barriers recognise named types whose underlying types are integer types
2024-05-16 12:41:42 +01:00
Owen Mansel-Chan
8cc118f781
Add change note
2024-05-16 11:16:54 +01:00
Owen Mansel-Chan
b008f98782
Fix missing getUnderlyingType() calls
...
In both cases we also care about named types whose underlying type is
an integer type.
2024-05-16 11:10:15 +01:00
Owen Mansel-Chan
410543f26b
Add change note
2024-05-16 10:10:22 +01:00
Owen Mansel-Chan
e71cf0ff1d
Use value flow instead of taint flow
2024-05-16 10:10:18 +01:00
Owen Mansel-Chan
5dbb91f508
Merge pull request #16504 from owen-mc/go/allow-array-reads-from-named-types
...
Go: allow read and store steps from named types
2024-05-16 09:47:54 +01:00
erik-krogh
ea2b73bda2
add a sanitizer that checks that the string does not start with "--"
2024-05-16 09:25:19 +02:00
erik-krogh
b9a7f6a8f7
add regexp check as a sanitizer for command-injection
2024-05-16 08:55:03 +02:00
erik-krogh
761f9cac97
make a new go/command-injection qhelp
2024-05-16 08:54:55 +02:00
erik-krogh
e2a4c2aa1b
move the code samples for the Go command-injection queries to an examples/ folder
2024-05-16 08:54:54 +02:00
Owen Mansel-Chan
6ffa821aa3
Add change note
2024-05-16 00:41:28 +01:00
Owen Mansel-Chan
21ff705b73
Fix bug with read/store steps and named types
2024-05-16 00:35:45 +01:00
Owen Mansel-Chan
1af3374322
Add tests for data flow through ranged for loops
...
Including the case where the type of the domain is a named type rather
than an array type or map type or whatever.
2024-05-16 00:32:30 +01:00
Michael B. Gale
81297aad8c
Go: Use standard semver format in outputEnvironmentJson
2024-05-15 12:21:23 +01:00
Michael B. Gale
fabd7a9c51
Go: Better preserve original versions
2024-05-15 12:01:03 +01:00
Michael B. Gale
e0543d1d59
Go: Support all permutations of version prefixes and suffixes
2024-05-15 10:43:02 +01:00
Owen Mansel-Chan
253965096b
Merge branch 'main' into workflow/coverage/update
2024-05-15 10:10:44 +01:00
Michael B. Gale
6652685f5a
Go: Restore toolchain.IsInstalled check
2024-05-15 10:07:44 +01:00
Michael B. Gale
898383ccff
Go: Fix comment in NewSemVer for empty string
2024-05-15 10:07:44 +01:00
Michael B. Gale
054efa648c
Go: Move version constants to shared location
2024-05-15 10:03:35 +01:00
Michael B. Gale
9e618b6961
Go: Use SemVer type in autobuilder package
2024-05-15 10:03:35 +01:00
Michael B. Gale
a6d2aa3913
Go: Use SemVer type in project package
2024-05-15 10:03:32 +01:00
Michael B. Gale
010df54657
Go: Use SemVer type in toolchain package
2024-05-15 10:03:01 +01:00
Michael B. Gale
d171750678
Go: Add SemVer type to track valid semantic versions
2024-05-15 10:02:10 +01:00
Michael B. Gale
964b3f2339
Merge pull request #16480 from github/mbg/go/improve-script-fail-message
...
Go: Improve log messages in `buildWithoutCustomCommands`
2024-05-15 10:00:30 +01:00
Michael B. Gale
586e90043a
Merge pull request #16462 from github/mbg/go/add-resolve-env-tests
...
Go: Add tests for `resolve build-environment`
2024-05-15 09:59:52 +01:00
Michael B. Gale
38e1065b24
Go: Document return values for Autobuild
2024-05-15 09:38:31 +01:00
Michael B. Gale
28c8611f93
Go: Add build-environment.expected for linux-only tests
2024-05-15 09:34:28 +01:00
Michael B. Gale
b44ad2d39f
Go: Add missing diagnostics.expected file
2024-05-15 09:33:44 +01:00
Michael B. Gale
7e10f212cd
Go: Move resolve build-environment test into subdirectory
2024-05-15 08:54:24 +01:00
Michael B. Gale
7cf61ffb18
Go: Add integration test for resolve build-environment
2024-05-15 08:51:54 +01:00
Michael B. Gale
eb2e587637
Go: Add build-environment.expected files
2024-05-15 08:41:31 +01:00
github-actions[bot]
c3caafcca1
Add changed framework coverage reports
2024-05-15 00:16:53 +00:00
Dave Bartolomeo
b49a61705c
Merge pull request #16491 from github/post-release-prep/codeql-cli-2.17.3
...
Post-release preparation for codeql-cli-2.17.3
2024-05-14 19:33:20 -04:00
github-actions[bot]
32e8b5c667
Post-release preparation for codeql-cli-2.17.3
2024-05-14 21:14:08 +00:00
Owen Mansel-Chan
145873f562
Merge pull request #16413 from owen-mc/go/fix-builtin-models
...
Go: fix models for built-in functions
2024-05-14 21:03:05 +01:00
github-actions[bot]
100166fa53
Release preparation for version 2.17.3
2024-05-14 19:23:18 +00:00
Michael B. Gale
58ef9f4e3e
Go: Run resolve build-environment in integration tests
2024-05-14 15:46:03 +01:00
Owen Mansel-Chan
827d15aaa0
Test changes due to model renumbering
2024-05-14 14:40:57 +01:00
Owen Mansel-Chan
ab5e1f8a69
Fix models for min and max and improve tests
...
Although the documentation makes them look variadic (and generic), they
are actually special-cased in the compiler. Like all built-in functions
they don't have a signature type, but the type of `min(a, b, c)` is
`func(int, int, int) int` and not `func(int, ...int) int`.
Go doesn't allow open-ended ranges for argument indices in
models-as-data specifications (though Ruby and Python do), so I've used
`1..1000`.
2024-05-14 14:40:56 +01:00
Chuan-kai Lin
9456eaf5d3
Merge pull request #16420 from github/cklin/go-entities-reorder
...
Go: Use entities in reorder directives
2024-05-13 10:26:04 -07:00