-
Notifications
You must be signed in to change notification settings - Fork 0
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
Merge 2-0-448 to backup_sync #59
base: backup_sync
Are you sure you want to change the base?
Commits on Jul 1, 2024
-
[c2cpg] Safe getType / getNodeType (joernio#4706)
They may fail throwing an unrecoverable exception in case of unresolved includes etc. Also, some minor clean-up.
Configuration menu - View commit details
-
Copy full SHA for fe7b8b6 - Browse repository at this point
Copy the full SHA fe7b8b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5d58eb4 - Browse repository at this point
Copy the full SHA 5d58eb4View commit details
Commits on Jul 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 9e5a6b2 - Browse repository at this point
Copy the full SHA 9e5a6b2View commit details -
[Ruby] Parser tests (joernio#4704)
This PR handles: * Move parser tests from the `deprecated` frontend to the new `ruby` frontend. * Fixed parser issues with HashLiterals * Fixed parser issues with one-liner class definitions * Fixed parser issues with arguments in functions
Configuration menu - View commit details
-
Copy full SHA for 2fa5a03 - Browse repository at this point
Copy the full SHA 2fa5a03View commit details -
[jssrc2cpg] Update astgen version (joernio#4714)
Brings in latest babel and typescript to astgen.
Configuration menu - View commit details
-
Copy full SHA for 336c989 - Browse repository at this point
Copy the full SHA 336c989View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e3e9c9 - Browse repository at this point
Copy the full SHA 5e3e9c9View commit details -
[ruby] Arrow Lambda Tests &
self
Parameter Name Fix (joernio#4716)* [ruby] Arrow Lambda Parameter Fix Tests various lambdas and fixes `self` parameter name in methods.
Configuration menu - View commit details
-
Copy full SHA for 5afcd8f - Browse repository at this point
Copy the full SHA 5afcd8fView commit details -
Configuration menu - View commit details
-
Copy full SHA for b76cdda - Browse repository at this point
Copy the full SHA b76cddaView commit details -
use scala3-style
import foo.bar.*
rather than._
(joernio#4717)partly to minify the flatgraph diff
Configuration menu - View commit details
-
Copy full SHA for fd2894c - Browse repository at this point
Copy the full SHA fd2894cView commit details -
[speculative] minor work on reachingDef (joernio#4715)
* minor work on reachingDef * fmt --------- Co-authored-by: Michael Pollmeier <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b40cdca - Browse repository at this point
Copy the full SHA b40cdcaView commit details
Commits on Jul 3, 2024
-
[jssrc2cpg] Update astgen to v3.16.0 (joernio#4718)
This astgen version skipps giant, unparsable files with EMSCRIPTEN code now by default. For: https://shiftleftinc.atlassian.net/browse/SEN-2797
Configuration menu - View commit details
-
Copy full SHA for 680be03 - Browse repository at this point
Copy the full SHA 680be03View commit details -
Configuration menu - View commit details
-
Copy full SHA for aad9fe3 - Browse repository at this point
Copy the full SHA aad9fe3View commit details -
[c2cpg] Register call typefullnames correctly (joernio#4722)
Also handle fullnames with generics correctly when stubbing types For: https://shiftleftinc.atlassian.net/browse/SEN-2840
Configuration menu - View commit details
-
Copy full SHA for b33a347 - Browse repository at this point
Copy the full SHA b33a347View commit details -
[ruby] Parser tests (joernio#4720)
This PR adds a few more parser tests based on tests in the `querying/` folder for Ruby.
Configuration menu - View commit details
-
Copy full SHA for 16925e6 - Browse repository at this point
Copy the full SHA 16925e6View commit details -
[ruby] Simplify
<
Base Classes (joernio#4723)Inheritance via `<` in Ruby can be arbitrary extensions which warrant post-processing analysis, so this removes any attempt to resolve the type at AST creation to allow for a post-processing pass to handle this instead.
Configuration menu - View commit details
-
Copy full SHA for 915b0ed - Browse repository at this point
Copy the full SHA 915b0edView commit details -
Removed joern-stats from install script (joernio#4725)
Does not exist anymore.
Configuration menu - View commit details
-
Copy full SHA for ec6d03d - Browse repository at this point
Copy the full SHA ec6d03dView commit details -
[ruby] Make
<body>
Call Static Dispatch (joernio#4726)As the `<body>` call is synthetic and meant to be immediately deterministic, so there is no reason it should be re-determined.
Configuration menu - View commit details
-
Copy full SHA for 18f7fae - Browse repository at this point
Copy the full SHA 18f7faeView commit details -
upgrade cpg and adapt (joernio#4728)
* upgrade cpg and adapt * use released cpg
Configuration menu - View commit details
-
Copy full SHA for dca780f - Browse repository at this point
Copy the full SHA dca780fView commit details -
minify flatgraph diff: remove unnessecary (and misleading) typescheck (…
…joernio#4729) ``` [warn] -- [E092] Pattern Match Unchecked Warning: /home/mp/Projects/shiftleft/joern.1/joern-cli/frontends/pysrc2cpg/src/test/scala/io/joern/pysrc2cpg/PySrc2CpgFixture.scala:74:61 [warn] 74 | path.resultPairs().collect { case (firstElement: String, secondElement: Option[Integer]) => [warn] | ^ [warn] |the type test for Option[Integer] cannot be checked at runtime because its type arguments can't be determined from Option[Int] [warn] | [warn] | longer explanation available when compiling with `-explain` } ```
Configuration menu - View commit details
-
Copy full SHA for ea45904 - Browse repository at this point
Copy the full SHA ea45904View commit details
Commits on Jul 4, 2024
-
[gosrc2cpg] Multi module support (joernio#4724)
Earlier, if we pass the directory path which contains multiple go modules. Processing was done with all the `.go` files mapped to single `go.mod` file. With this change, we have segregated the processing by first isolating all the files mapped to respective `go.mod`. This will also make sure to cleanup the memory footprint after every module is being processed. However, this will increase the processing when used with download dependency as it will process all the `go.mod` files for identifying and processing used dependencies.
Configuration menu - View commit details
-
Copy full SHA for dbdb02f - Browse repository at this point
Copy the full SHA dbdb02fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 59b5ada - Browse repository at this point
Copy the full SHA 59b5adaView commit details -
[ruby] Singleton methods on objects (joernio#4734)
This PR changes the modelling of Singleton methods on objects. Ex: ```ruby class Animal; end animal = Animal.new class << animal def bark "woof" end end ``` Creates a lambda method for `animal.bark`, and assigns `animal.bark = methodRef(bark)` Resolves joernio#4721
Configuration menu - View commit details
-
Copy full SHA for cb2bb5c - Browse repository at this point
Copy the full SHA cb2bb5cView commit details -
[c2cpg] Fixed more exceptions (joernio#4736)
- we had one stackoverflow in fullname - evaluation.getOverload may return null
Configuration menu - View commit details
-
Copy full SHA for d3b36e9 - Browse repository at this point
Copy the full SHA d3b36e9View commit details -
[javasrc2cpg] Fix always-crashing array initializer type resolution (j…
…oernio#4733) * Fix always-crashing array initializer type resolution * Fix exception when trying to cast ArrayType to ClassOrInterfaceType * Fix formatting
Configuration menu - View commit details
-
Copy full SHA for ff80364 - Browse repository at this point
Copy the full SHA ff80364View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7abe33a - Browse repository at this point
Copy the full SHA 7abe33aView commit details
Commits on Jul 5, 2024
-
minify the flatgraph diff by bringing various things in before the bi…
…g merge (joernio#4737) * minify the flatgraph diff by bringing various things in before the big merge * fmt * revert accidental change
Configuration menu - View commit details
-
Copy full SHA for dd3fb0d - Browse repository at this point
Copy the full SHA dd3fb0dView commit details -
[TypeRecovery] Handle Member without AST Parent Safely (joernio#4739)
For new frontends with potentially malformed ASTs, type recovery must safely handle instances where members don't have AST parents.
Configuration menu - View commit details
-
Copy full SHA for 0c49cb9 - Browse repository at this point
Copy the full SHA 0c49cb9View commit details -
Configuration menu - View commit details
-
Copy full SHA for cf8d139 - Browse repository at this point
Copy the full SHA cf8d139View commit details -
[ruby] Handle
super
Calls (joernio#4740)The parser emits calls to `super` as different from simple calls, this PR handles them.
Configuration menu - View commit details
-
Copy full SHA for 3a98c4b - Browse repository at this point
Copy the full SHA 3a98c4bView commit details
Commits on Jul 8, 2024
-
[c2cpg] Fixed MethodRef typeFullName (joernio#4743)
Also: no more empty method fullnames
Configuration menu - View commit details
-
Copy full SHA for f446279 - Browse repository at this point
Copy the full SHA f446279View commit details -
[ruby]
super
Argumentnull
& Association Key Handling (joernio#4746)* Safely handles the case when `super` call has a `null` argument from the parser * Shadows keywords when they are used as keys in association keys for named arguments in calls * Handles singleton methods in implicit returns
Configuration menu - View commit details
-
Copy full SHA for 2bbece9 - Browse repository at this point
Copy the full SHA 2bbece9View commit details -
[ruby] Bind nested method members to method type (joernio#4747)
This PR fixes a bug where method members were not correctly linked to surrounding methods' bound type decls. Additionally, this handles `return` statements without any proceeding expression. Resolves joernio#4732
Configuration menu - View commit details
-
Copy full SHA for 0acd0a2 - Browse repository at this point
Copy the full SHA 0acd0a2View commit details
Commits on Jul 9, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d9be183 - Browse repository at this point
Copy the full SHA d9be183View commit details -
[ruby] Fixed Persistence Issue of Captured Variable Info (joernio#4750)
The initial implementation of the edge creation and captured local node was wrongly added to the `Ast` object instead of the diff graph. This PR rectifies this.
Configuration menu - View commit details
-
Copy full SHA for 914aa46 - Browse repository at this point
Copy the full SHA 914aa46View commit details -
Configuration menu - View commit details
-
Copy full SHA for 21d39c9 - Browse repository at this point
Copy the full SHA 21d39c9View commit details
Commits on Jul 10, 2024
-
[ruby] Emit TypeRef instead of MethodRef for Lambdas (joernio#4753)
Due to Ruby method references being called via a `.call()` method, the type ref that should be emitted, is one that contains the `.call` method, but is not necessarily the same type as the one bound to the actual lambda. This makes that change, however, data-flow no longer works in the open-source data-flow tracker as this is not supported.
Configuration menu - View commit details
-
Copy full SHA for 18b6d88 - Browse repository at this point
Copy the full SHA 18b6d88View commit details -
[ruby] Singleton Methods on Objects Follow-Up (joernio#4754)
* [ruby] Remodelled methods defined on singleton objects to no longer be lambdas * [ruby] Review comments
Configuration menu - View commit details
-
Copy full SHA for a547cd1 - Browse repository at this point
Copy the full SHA a547cd1View commit details -
[ruby] Method/Type Full Name Simplification (joernio#4755)
* Renamed `:program` to `<main>` * Replaced `:` method separator to `.` * Removed `<global>` from full names of types and methods
Configuration menu - View commit details
-
Copy full SHA for 777c67a - Browse repository at this point
Copy the full SHA 777c67aView commit details
Commits on Jul 11, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d77252a - Browse repository at this point
Copy the full SHA d77252aView commit details -
[ruby] Handle Re-definitions (joernio#4757)
In the case of a type or method re-definition, the full name is ensured to be unique by a set that tracks all full-names for that compilation unit, and a counter. Resolves joernio#4742
Configuration menu - View commit details
-
Copy full SHA for 19dd54e - Browse repository at this point
Copy the full SHA 19dd54eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4e43881 - Browse repository at this point
Copy the full SHA 4e43881View commit details -
Configuration menu - View commit details
-
Copy full SHA for 243c29d - Browse repository at this point
Copy the full SHA 243c29dView commit details -
[ruby] Remodel
yield
Calls (joernio#4763)This PR remodels `yield` calls as explicit invocations of the implicit or explicit block parameter of the surrounding method. Resolves joernio#4760
Configuration menu - View commit details
-
Copy full SHA for 9c13325 - Browse repository at this point
Copy the full SHA 9c13325View commit details
Commits on Jul 12, 2024
-
Configuration menu - View commit details
-
Copy full SHA for e6f5197 - Browse repository at this point
Copy the full SHA e6f5197View commit details -
[ruby] Consistently Model Getters/Setters (joernio#4765)
Getters and setters were modelled as their CPG operations in isolation, and not using the ordinary AST creator hooks. This PR lowers the getters and setters as their `RubyNode` equivalents, and hands off the AST creation to `astForMethodDeclaration`.
Configuration menu - View commit details
-
Copy full SHA for c67eeaf - Browse repository at this point
Copy the full SHA c67eeafView commit details -
[php2cpg] Support array/list unpacking (joernio#4764)
* [php2cpg] Support array/list unpacking in assignment * [php2cpg] Rename method and fix some tests * [php2cpg] code clean and improved test * [php2cpg] improved test
Configuration menu - View commit details
-
Copy full SHA for 57c2dfe - Browse repository at this point
Copy the full SHA 57c2dfeView commit details -
Configuration menu - View commit details
-
Copy full SHA for b2b2bc4 - Browse repository at this point
Copy the full SHA b2b2bc4View commit details
Commits on Jul 15, 2024
-
IF Cfg creation for if-statements with empty
then
block. (joernio#4772) * IF Cfg creation for if-statements with empty `then` block. * Update joern-cli/frontends/c2cpg/src/test/scala/io/joern/c2cpg/passes/cfg/CfgCreationPassTests.scala Co-authored-by: maltek <[email protected]> --------- Co-authored-by: maltek <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8fac557 - Browse repository at this point
Copy the full SHA 8fac557View commit details -
[x2cpg] Improve Cfg creation. (joernio#4773)
- Changed test constructs used to test the CFG creation to return List instead of Set. This avoids deduplication which is required for correct tests because the number of edges between two nodes matters. - The above change unveiled a problem with the for-statement CFG: Duplicate edge between loop condition and body
Configuration menu - View commit details
-
Copy full SHA for 5336780 - Browse repository at this point
Copy the full SHA 5336780View commit details
Commits on Jul 16, 2024
-
Merge branch 'master' of https://github.com/joernio/joern into 2-0-448
GitHub Actions Bot committedJul 16, 2024 Configuration menu - View commit details
-
Copy full SHA for 18d3ca9 - Browse repository at this point
Copy the full SHA 18d3ca9View commit details