Skip to content

Commit

Permalink
Merge pull request #11 from dnsdudrla97/step-6
Browse files Browse the repository at this point in the history
step-6
  • Loading branch information
dnsdudrla97 committed Oct 20, 2021
2 parents 9555679 + 1e812ec commit 66173cf
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions 6_memcpy_calls.ql
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
import cpp

// from FunctionCall call, Function fcn
// where
// call.getTarget() = fcn and
// fcn.getDeclaringType().getSimpleName() = "map" and
// fcn.getDeclaringType().getNamespace().getName() = "std" and
// fcn.hasName("find")
// select call

from FunctionCall call
where
call.getTarget().getName() = "memcpy"
select call

2 comments on commit 66173cf

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 query changed between 9555679 and 66173cf after push to refs/heads/main:

  • 6_memcpy_calls.ql

Results for 6_memcpy_calls.ql: correct (596 results)

@github-learning-lab
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congratulations, looks like the query you introduced for step 6 finds the correct results!

Merge this Pull Request (unless you're on main), and take a look at the instructions for the next step to continue.

Please sign in to comment.