Ian Lynagh
89b3363761
Kotlin: Bump CI version to 1.8.0-Beta
2023-01-10 14:41:30 +00:00
Ian Lynagh
b51c3aae85
Kotlin: Logs test: Allow for -Beta versions etc when parsing the logs
2023-01-10 14:41:29 +00:00
Ian Lynagh
6fbda1a9f0
Kotlin: Accept test changes with 1.8
2023-01-10 14:41:29 +00:00
Ian Lynagh
f7d8d16ed3
Kotlin: Fix build for 1.8.0-Beta
...
The build no longer works for Kotlin < 1.8: We get
error: class 'org.jetbrains.kotlin.ir.IrElement' was compiled
with an incompatible version of Kotlin. The binary version
of its metadata is 1.8.0, expected version is 1.6.0.
2023-01-10 14:41:29 +00:00
erik-krogh
62b69bbd3e
autoformat
2023-01-10 15:38:13 +01:00
Erik Krogh Kristensen
6623e5fbf3
Merge pull request #11852 from erik-krogh/jsInfiniteChar
...
JS: recognize an infinite repetition of a char-class like regex as a char-class like regex
2023-01-10 15:32:22 +01:00
Erik Krogh Kristensen
ce8836fb65
Update javascript/ql/lib/semmle/javascript/PackageExports.qll
...
Co-authored-by: Esben Sparre Andreasen <esbena@github.com >
2023-01-10 15:30:44 +01:00
erik-krogh
43696f5e27
add explicit this
2023-01-10 15:27:37 +01:00
erik-krogh
23a847b1cf
track shell:true more in js/shell-command-constructed-from-input
2023-01-10 15:27:37 +01:00
Erik Krogh Kristensen
9f8d10de11
Merge pull request #11851 from erik-krogh/jsFixMissingThis
...
JS: fix bad join-order in js/missing-this-qualifier
2023-01-10 15:23:25 +01:00
Paolo Tranquilli
2fb5621527
Swift: replace $(CC) with clang
...
On macOS `$(CC)` points to a wrapper that requires `DEVELOPER_DIR` to be
set in the environment. Using `clang` is slightly less generic, but
that's our default any way. Even if we do set a different clang version
somewhere, the selected version of GCC would not change, and the test
is targeting that.
2023-01-10 14:58:21 +01:00
Paolo Tranquilli
943763a026
Swift: add -Wno-pragma-once-outside-header to check
2023-01-10 14:30:35 +01:00
Paolo Tranquilli
28d79eeb77
Swift: make compilation with different STL versions possible
...
Previous to this patch the code contained a workaround for the standard
defect
https://cplusplus.github.io/LWG/issue3657
where `std::filesystem::path` did not have a `std::hash` implementation.
This patch allows compiling against versions of the STL that contain the
fix to the above issue. This is done by running the compiler against
code defining `std::hash<std::filesystem::path>`: if compilation
succeeds, it means the fix is not there and we need to use the
workaround, contained in `PathHash.h.workaround`. Otherwise, the fix is
there and we use `PathHash.h.fixed` instead, which only includes the
standard headers included by `PathHash.h.workaround`, so that one is a
drop-in replacement of the other.
2023-01-10 14:14:33 +01:00
Jeroen Ketema
1a4048d238
Merge pull request #11830 from jketema/frontend-update
...
C++: Changes for frontend update
2023-01-10 14:01:46 +01:00
erik-krogh
5c388c554c
fix that the TypeTracker was unrestricted for the base-case of nonFirstLocationType
2023-01-10 13:39:50 +01:00
erik-krogh
e02b67af63
add failing test
2023-01-10 13:39:50 +01:00
Tony Torralba
50cd40ed20
Swift: Remove omittable exists variables
2023-01-10 13:39:50 +01:00
Tony Torralba
7ef8099a8b
Shared: Remove omittable exists variables
2023-01-10 13:39:50 +01:00
Tony Torralba
c9d1cd97fb
Ruby: Remove omittable exists variables
2023-01-10 13:39:49 +01:00
Tony Torralba
f6c3f77602
QL: Remove omittable exists variables
2023-01-10 13:37:58 +01:00
Tony Torralba
d87c8c75d6
Python: Remove omittable exists variables
2023-01-10 13:37:35 +01:00
Tony Torralba
3b6dae41cd
JavaScript: Remove omittable exists variables
2023-01-10 13:37:21 +01:00
Tony Torralba
32471d326e
Java: Remove omittable exists variables
2023-01-10 13:37:19 +01:00
Tony Torralba
7a92970d89
Go: Remove omittable exists variables
2023-01-10 13:36:48 +01:00
Tony Torralba
2ca0df0369
C#: Remove omittable exists variables
2023-01-10 13:36:25 +01:00
Tony Torralba
3fcc99e5cb
C++: Remove omittable exists variables
2023-01-10 13:36:01 +01:00
Erik Krogh Kristensen
f2658a0936
apply suggestions from doc review
...
Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com >
2023-01-10 12:56:22 +01:00
Tony Torralba
da90ae0e8f
Update java/ql/lib/semmle/code/java/dataflow/FlowSources.qll
2023-01-10 11:18:53 +01:00
Jeroen Ketema
8d46642de3
C++: Update dbscheme stats file
2023-01-10 10:41:43 +01:00
Jeroen Ketema
2fc6484162
C++: Add dbscheme upgrade and downgrade scripts
2023-01-10 10:41:43 +01:00
Jeroen Ketema
1bab950023
C++: Introduce (_Complex) _Float16 type which is needed after frontend update
2023-01-10 10:41:43 +01:00
Jeroen Ketema
282ca1094e
C++: Accept test changes after improving size of _Float128 in frontend
2023-01-10 10:41:43 +01:00
Jeroen Ketema
e215c4c94c
C++: Accept test changes after frontend update
...
The location of a reference dereference has changed slightly.
2023-01-10 10:41:43 +01:00
Michael Nebel
16cd148961
Merge pull request #11711 from michaelnebel/externalflowcleanup
...
C#/Java: Delete deprecated ModelCsv classes and related predicates.
2023-01-10 10:22:50 +01:00
Michael Nebel
1729319ebe
Merge pull request #11804 from michaelnebel/csharp/alignqueryids
...
C#: Align query IDs.
2023-01-10 10:14:07 +01:00
Michael Nebel
18a0abdb4c
Merge pull request #11740 from michaelnebel/csharp/updatestats
...
C#: Update stats based on projects.
2023-01-10 10:09:53 +01:00
Ed Minnix
293a203756
Move JavascriptInterfaceMethod to WebView.qll
2023-01-09 15:10:23 -05:00
Rasmus Lerchedahl Petersen
2edbfbf8bc
python: update test expectations
...
...now the bug is fixed
2023-01-09 20:35:20 +01:00
Mathias Vorreiter Pedersen
7f5344e025
Update swift/ql/lib/codeql/swift/elements/type/NumericOrCharType.qll
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2023-01-09 17:08:27 +00:00
Tony Torralba
8e0a018673
Consider Int8 and UInt8 as OsLogNonRedactedTypes
2023-01-09 18:05:18 +01:00
Tony Torralba
49a41c98ee
Test that hashed passwords are 'safe' to log
...
This doesn't seem completely right, but the heuristic approach we have regarding sensitive expressions has to draw the line somewhere.
2023-01-09 18:01:07 +01:00
Tony Torralba
160d89fb4e
Add qhelp examples
2023-01-09 18:01:07 +01:00
Tony Torralba
33029b0ed8
Fix sanitizer QLDoc
2023-01-09 18:01:07 +01:00
Tony Torralba
7e0869965c
Uncomment tests
2023-01-09 18:01:07 +01:00
Tony Torralba
c1f19dd145
Add stub so that tests work on Linux
2023-01-09 18:01:07 +01:00
Tony Torralba
b203a9eb6e
Add a sanitizer for OSLogPrivacy options
...
Add test cases to verify how the sanitizer behaves depending on the argument type and the privacy option being used.
2023-01-09 18:01:07 +01:00
Tony Torralba
aad56097ac
Add Cleartext Loggin query for Swift.
...
With some caveats: see TODO comments and failing tests.
2023-01-09 18:01:07 +01:00
Rasmus Lerchedahl Petersen
c142495a8b
python: simplify code
2023-01-09 17:51:45 +01:00
Rasmus Lerchedahl Petersen
5fe62e293a
python: fix bug, add clarifying comment
2023-01-09 17:45:50 +01:00
erik-krogh
9f100ef2c6
add local flow when recognizing Object.assign calls for library-inputs
2023-01-09 17:44:11 +01:00