Skip to content
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

Update example output to match current Joern version #43

Open
johannescoetzee opened this issue Aug 3, 2021 · 0 comments
Open

Update example output to match current Joern version #43

johannescoetzee opened this issue Aug 3, 2021 · 0 comments

Comments

@johannescoetzee
Copy link
Contributor

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"
  )
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant