Skip to content

Commit

Permalink
Step 9 - Write your own class
Browse files Browse the repository at this point in the history
  • Loading branch information
qianshuidewajueji committed May 10, 2021
1 parent 36cef15 commit d56da3f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions 9_class_network_byteswap.ql
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
import cpp

class NetworkByteSwap extends Expr{
NetworkByteSwap(){
exists( MacroInvocation mi |
mi.getMacro().getName().regexpMatch("hton.*") and
this = mi.getExpr()
)
}
}

from NetworkByteSwap n
select n,"Network byte swap"

1 comment on commit d56da3f

@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 36cef15 and d56da3f after push to refs/heads/main:

  • 9_class_network_byteswap.ql

Results for 9_class_network_byteswap.ql: incorrect (124 results):

Your query is missing some results and selecting unexpected results
Expected query to produce 107 results

Missing results (first 10 only):

Unexpected results (first 10 only):

Please sign in to comment.