Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ThisBuild / organization := "io.appthreat"
ThisBuild / version := "2.5.0"
ThisBuild / scalaVersion := "3.7.4"

val chenVersion = "2.5.11"
val chenVersion = "2.5.12"

lazy val atom = Projects.atom

Expand Down
6 changes: 6 additions & 0 deletions src/main/scala/io/appthreat/atom/Atom.scala
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,9 @@ object Atom:
.withOutputPath(outputAtomFile)
.withFunctionBodies(false)
.withIgnoredFilesRegex(COMMON_IGNORE_REGEX)
.withParseInactiveCode(false)
.withImageLocations(false)
.withIncludeTrivialExpressions(false)
)

private def createC2Cpg(config: AtomConfig, outputAtomFile: String): Try[Cpg] =
Expand All @@ -660,6 +663,9 @@ object Atom:
.withFunctionBodies(true)
.withIgnoredFilesRegex(COMMON_IGNORE_REGEX)
.withIncludePaths(C2ATOM_INCLUDE_PATH)
.withParseInactiveCode(false)
.withImageLocations(false)
.withIncludeTrivialExpressions(false)
)

private def createJimple2Cpg(config: AtomConfig, outputAtomFile: String): Try[Cpg] =
Expand Down
4 changes: 2 additions & 2 deletions src/main/scala/io/appthreat/atom/passes/DataDepsPass.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import io.appthreat.dataflowengineoss.semanticsloader.Semantics
import io.shiftleft.codepropertygraph.Cpg
import io.shiftleft.codepropertygraph.generated.nodes.*
import io.shiftleft.semanticcpg.language.*
import io.shiftleft.passes.ConcurrentWriterCpgPass
import io.shiftleft.passes.StreamingCpgPass
import scala.collection.mutable

/** A pass that calculates reaching definitions ("data dependencies") based on ReachingDefPass
*/
class DataDepsPass(atom: Cpg, maxNumberOfDefinitions: Int = 2000)(implicit s: Semantics)
extends ConcurrentWriterCpgPass[Method](atom):
extends StreamingCpgPass[Method](atom):

// If there are any regex method full names, load them early
s.loadRegexSemantics(atom)
Expand Down