Geoffrey White
d3063e849e
Swift: Model string closure methods.
2023-10-24 12:58:38 +01:00
Geoffrey White
f597f0272a
Update README.md
...
Turned the warning at the top into a warning box.
Made the section headers consistent.
I was going to add a section, but I realized it belongs somewhere else. :)
2023-10-24 10:12:20 +01:00
Geoffrey White
4cf40ed259
Swift: Add a test case for withMutableCharacters.
2023-10-23 23:30:19 +01:00
Paolo Tranquilli
2f0ee12584
Swift: fix patterns/bound_and_unbound.ql test
2023-10-23 17:36:42 +02:00
Paolo Tranquilli
f22d60f011
Swift: clean up VarDecl, NamedPattern and SwitchStmt interactions
...
* `variables` under `CaseStmt` are now AST children, which solves
orphan `VarDecl`s in that case
* reordered `CaseStmt` AST children to be `labels > variables > body`
(was `body > labels`)
* made `NamedPattern::getVarDecl` an extracted property instead of
`getName`
* The above led to duplicate DB entities because of a quirk in the
Swift compiler code. This is solved by tweaking the extraction of
`variables` under `CaseStmt` to not use `getCaseBodyVariables`.
2023-10-23 17:36:42 +02:00
Paolo Tranquilli
7cc20587ad
Codegen: add @qltest.test_with
...
This allows to group together related AST classes to reuse the same
test source and extraction. For example this is useful for
`EnumDecl/EnumCaseDecl/EnumElementDecl`, where this is applied to.
2023-10-23 14:51:22 +02:00
Paolo Tranquilli
c92519ed6b
Merge pull request #14538 from github/redsun82/add-unspecified-element-children
...
Swift: add children to `UnspecifiedElement`
2023-10-20 12:27:05 +02:00
Dave Bartolomeo
712f7758cf
Merge branch 'main' into post-release-prep/codeql-cli-2.15.1
2023-10-19 12:14:07 -04:00
Paolo Tranquilli
d55289bf68
Swift: add children to UnspecifiedElement
...
This will allow better downgrade scripts in the future.
2023-10-18 16:42:04 +02:00
Alex Denisov
eb3e140008
Swift: remove outdated CLI argument
2023-10-18 14:44:47 +02:00
github-actions[bot]
8dcd8b9e5b
Post-release preparation for codeql-cli-2.15.1
2023-10-17 20:24:00 +00:00
Geoffrey White
b93442a2b6
Merge pull request #14523 from geoffw0/appendingformat
...
Swift: Model StringProtocol.appendingformat and String.decodecstring
2023-10-17 18:04:29 +01:00
Robert Marsh
53e80e0f27
Merge pull request #14398 from rdmarsh2/rdmarsh2/swift/autoclosure-cfg
...
Swift: add CFG for normal autoclosures
2023-10-17 11:50:24 -04:00
Mathias Vorreiter Pedersen
68f2501bf0
Merge pull request #14496 from geoffw0/memberinittest
...
Swift: Add data flow tests for member initialization.
2023-10-17 12:35:07 +01:00
Geoffrey White
5ffb773568
Swift: Explore instantiated / not instantiated classes.
2023-10-17 11:30:03 +01:00
Geoffrey White
0a96eb0a40
Swift: Change note.
2023-10-16 21:43:55 +01:00
Geoffrey White
2679d1fdb5
Swift: Add models.
2023-10-16 21:40:38 +01:00
Geoffrey White
451d779f4a
Swift: Test String.decodeCString.
2023-10-16 21:22:03 +01:00
Geoffrey White
459b006244
Swift: Test StringProtocol.appendingFormat.
2023-10-16 21:22:03 +01:00
github-actions[bot]
3b3c036626
Release preparation for version 2.15.1
2023-10-16 17:49:39 +00:00
Geoffrey White
c6ff42986d
Swift: Change note.
2023-10-16 18:43:03 +01:00
Geoffrey White
990c40c8c8
Swift: Barrier for duplicate results in constant queries, resulting from sources like [1, 2, 3].
2023-10-16 18:28:51 +01:00
Geoffrey White
6108f787dd
Swift: Effect on query tests.
2023-10-16 18:28:51 +01:00
Geoffrey White
0509c0fdf3
Swift: Effect on dataflow tests.
2023-10-16 18:28:50 +01:00
Geoffrey White
89867d6214
Swift: Default content read step.
2023-10-16 18:28:50 +01:00
Robert Marsh
efb04f6db4
Swift: update generated files list
2023-10-16 17:22:52 +00:00
Robert Marsh
d0ec2fd643
Swift: fix QLDoc typos
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2023-10-16 13:20:41 -04:00
Geoffrey White
1f92267786
Swift: Sort out identical files situation.
2023-10-16 11:26:12 +01:00
Geoffrey White
890b9d59ed
Swift: Fix line numbers.
2023-10-16 11:09:54 +01:00
Geoffrey White
225a9fe2d8
Merge branch 'main' into implicitflow
2023-10-16 11:02:34 +01:00
Geoffrey White
0e1da37379
Revert "Swift: Hide OpenExistentialExpr from the AST instead."
...
This reverts commit 9ad1749957 .
2023-10-16 10:49:39 +01:00
Geoffrey White
39a6375606
Swift: Change note.
2023-10-16 10:17:32 +01:00
Geoffrey White
613c7b24b5
Swift: Model .base, withUTF8(_:).
2023-10-16 10:17:32 +01:00
Geoffrey White
0bc24b8641
Swift: Model replaceSubrange more generally.
2023-10-16 10:17:32 +01:00
Geoffrey White
c6f2a2936b
Swift: Widen the StringProtocol model.
2023-10-16 10:14:43 +01:00
Geoffrey White
dcba1b9913
Swift: Tests for Substring.
2023-10-16 10:14:42 +01:00
Geoffrey White
cea87a53e0
Swift: Fix LocalTaint.expected.
2023-10-13 18:19:26 +01:00
Geoffrey White
e2ac3769bc
Swift: Change note.
2023-10-13 17:42:14 +01:00
Geoffrey White
aa0db1426d
Swift: Simplify the QL a bit further.
2023-10-13 17:42:14 +01:00
Geoffrey White
d0f214a9a7
Swift: Widen the model to include things that are not strictly RawRepresentable but which appear similar. This fixes the XXE test cases. Unclear whether xmlParserOption in the test should in fact extend RawRepresentable, or not.
2023-10-13 17:35:05 +01:00
Mathias Vorreiter Pedersen
fb0016e4f6
Merge pull request #14485 from geoffw0/logging
...
Swift: Add more sinks to `swift/cleartext-logging`
2023-10-13 16:09:19 +01:00
Mathias Vorreiter Pedersen
9a2ac65f53
Merge pull request #14394 from geoffw0/sqlpathinject3
...
Swift: Add sinks for sqlite3 and SQLite.swift to swift/hardcoded-key
2023-10-13 16:07:09 +01:00
Robert Marsh
b832fc8e32
Swift: additional QLDoc around closures
2023-10-13 14:54:38 +00:00
Geoffrey White
4e29ed5ff0
Swift: Model RawRepresentable.
2023-10-13 15:00:49 +01:00
Geoffrey White
228aaee0bf
Swift: Add data flow tests for RawRepresentable, OptionSet.
2023-10-13 14:34:05 +01:00
Geoffrey White
9e473ebda4
Swift: Remove the 'rawValue' step as well.
2023-10-13 14:02:15 +01:00
Geoffrey White
da14f428e2
Swift: Remove now redundant additional taint step. from the XXE query.
2023-10-13 13:57:54 +01:00
Geoffrey White
33f83a2089
Swift: Add some failing data flow test cases.
2023-10-13 12:24:43 +01:00
Robert Marsh
dd71204128
Swift: update test expectations for for-in locations
2023-10-12 18:59:36 +00:00
Geoffrey White
fe57cd0784
Merge pull request #14488 from geoffw0/strlentest
...
Swift: Additional test cases for `swift\string-length-conflation`
2023-10-12 19:39:43 +01:00