-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
36cef15
commit d56da3f
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
d56da3f
There was a problem hiding this comment.
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
andd56da3f
after push torefs/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):
call to __bswap_32
call to __bswap_16
call to __bswap_16
... ? ... : ...
... ? ... : ...
... ? ... : ...
... ? ... : ...
... ? ... : ...
... ? ... : ...
... ? ... : ...