Skip to content
This repository was archived by the owner on Oct 27, 2021. It is now read-only.

Commit

Permalink
Merge pull request #98 from joernio/jcoetzee/fix-queries
Browse files Browse the repository at this point in the history
Fix minor issues due to fuzzy and new c parser discrepancies
  • Loading branch information
Johannes Coetzee authored Aug 12, 2021
2 parents b14b1a7 + 4543841 commit bd5c73c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ object DangerousFunctions extends QueryBundle {
|void secure_getcwd(char *buf, size_t len) {
| getcwd(buf, len);
|}
|""")
|""".stripMargin)
)
)
}
4 changes: 2 additions & 2 deletions src/main/scala/io/joern/scanners/c/Metrics.scala
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ object Metrics extends QueryBundle {
cpg.method.internal
.filter(
_.ast.isControlStructure
.parserTypeName("(For|Do|While).*")
.controlStructureType("(FOR|DO|WHILE)")
.size > n)
}),
tags = List(QueryTags.metrics),
Expand Down Expand Up @@ -230,7 +230,7 @@ object Metrics extends QueryBundle {
| }
|}
|
|""")
|""".stripMargin)
)
)
}

0 comments on commit bd5c73c

Please sign in to comment.