Skip to content
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

Explicitly use NULL macro in dref check #2965

Merged
merged 2 commits into from
Jun 13, 2020

Conversation

djosephsen
Copy link
Contributor

@djosephsen djosephsen commented Jun 12, 2020

As a new-person going through the tutorial myself, I thought it might be a little clearer to use the NULL macro in checks like these. This could be accompanied by a thing to learn in lesson four to the effect of: The verifier requires that pointer values derived from a map lookup must be checked for a null value before they can be dereferenced and used

@yonghong-song
Copy link
Collaborator

[buildbot, test this please]

@yonghong-song yonghong-song merged commit 5966549 into iovisor:master Jun 13, 2020
CrackerCat pushed a commit to CrackerCat/bcc that referenced this pull request Jul 31, 2024
 Explicitly use NULL macro in pointer value check
 also updated the tutorial
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants