-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Motivating example from https://docs.joern.io/quickstart:
Quickstart guide
joern> cpg.call.argument.code("stderr").toList
res4: List[Call] = List(
Call(
id -> 24L,
code -> "fprintf(stderr, \"It depends!\\n\")",
name -> "fprintf",
order -> 1,
methodInstFullName -> None,
methodFullName -> "fprintf",
argumentIndex -> 1,
dispatchType -> "STATIC_DISPATCH",
signature -> "TODO assignment signature",
typeFullName -> "ANY",
dynamicTypeHintFullName -> List(),
lineNumber -> Some(7),
columnNumber -> Some(4),
resolved -> None,
depthFirstOrder -> Some(-8),
internalFlags -> Some(4)
)
)
Fuzzy cpg
joern> cpg.call.argument.code("stderr").toList
res1: List[Expression] = List(
Identifier(
id -> 1000118L,
argumentIndex -> 1,
argumentName -> None,
code -> "stderr",
columnNumber -> Some(value = 12),
lineNumber -> Some(value = 7),
name -> "stderr",
order -> 1,
typeFullName -> "ANY"
)
)
Metadata
Metadata
Assignees
Labels
No labels