We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
TRASHIT() macro should set pointer to NULL in usrsctplib/user_queue.h.
TRASHIT()
NULL
usrsctplib/user_queue.h
This is just a hardening measure to make sure stale pointers are not left in next/prev struct members.
Also fixed here:
Bug 247637: TRASHIT() macro should set pointer to NULL in usrsctp/usrsctplib/usrsctplib/user_queue.h WebKit/WebKit@3e2573a
The text was updated successfully, but these errors were encountered:
Last I looked, usrsctp only used LIST_REMOVE() and TAILQ_REMOVE(), so this minimal change would cover the current code:
LIST_REMOVE()
TAILQ_REMOVE()
- #define TRASHIT(x) + #define TRASHIT(x) do {(x) = (void *)0;} while (0)
The WebKit fix went a little further.
Sorry, something went wrong.
No branches or pull requests
TRASHIT()
macro should set pointer toNULL
inusrsctplib/user_queue.h
.This is just a hardening measure to make sure stale pointers are not left in next/prev struct members.
Also fixed here:
Bug 247637: TRASHIT() macro should set pointer to NULL in usrsctp/usrsctplib/usrsctplib/user_queue.h
WebKit/WebKit@3e2573a
The text was updated successfully, but these errors were encountered: