-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Step 5 - Using different classes and their predicates #5
Comments
⌨️ Activity: Find all
|
Congratulations, looks like the query you introduced in 4f15b38 finds the correct results! If you created a pull request, merge it. Let's continue to the next step. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Step 5: Using different classes and their predicates
We want to identify integer values that are supplied from network data. A good way to spot those is to look for use of network ordering conversion macros such as
ntohl
,ntohll
, andntohs
.In the
from
section of the query, you declare some variables, and state the types of those variables. The type tells us what the possible values are for the variable.In the previous query you were querying for values in the class
Function
to find functions in the source code. We have to query a different type to find macros in the source code instead. Can you guess its name?NOTE: These Network ordering conversion utilities can be macros or functions depending on the platform. In this course, we are looking at a Linux database, where they are macros.
The text was updated successfully, but these errors were encountered: