Skip to content

Commit

Permalink
step-9
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuki Endo authored and Yuki Endo committed Aug 29, 2022
1 parent 88036da commit 0756174
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions 9_class_network_byteswap.ql
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
import cpp

class NetworkByteSwap extends Expr {
NetworkByteSwap () {
exists(MacroInvocation macroInv | macroInv.getMacro().getName().regexpMatch("ntoh[s|l]l*+") and
this = macroInv.getExpr()
)
}
}

from NetworkByteSwap n
select n, "Network byte swap"

2 comments on commit 0756174

@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 8a4faa6 and 0756174 after push to refs/heads/step-9:

  • 9_class_network_byteswap.ql

Results for 9_class_network_byteswap.ql: correct (107 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 9 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.