-
Notifications
You must be signed in to change notification settings - Fork 291
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
Fix NULL pointer dereference in log calls #276
Conversation
Not really sure what is another way to get the logger object in there, so just commenting it out with a TODO. |
We could add an additional argument for a logger and pass |
e2dda8b
to
ebb1b34
Compare
Found the same issue in |
Review status: 0 of 2 files reviewed at latest revision, 2 unresolved discussions. toxav/msi.c, line 139 at r1 (raw file):
This function is called exactly once, in an expression of the form toxav/rtp.c, line 115 at r1 (raw file):
Unlike the msi one, this condition does not obviously always fail. I can currently statically prove that this condition is either true or not reached. If Still, I think if this happens, it's a serious bug we should know about immediately. @mannol why is this a warning and not an error? Comments from Reviewable |
I have asked if it would be acceptable to add an additional Log argument to those two functions and make the called pass the log object. Since I haven't receive any reply on that, I assume it's not acceptable. Reviewed 2 of 2 files at r1. toxav/rtp.c, line 115 at r1 (raw file):
|
toxav/msi.c, line 139 at r1 (raw file):
|
It's acceptable. Review status: all files reviewed at latest revision, 2 unresolved discussions, some commit checks failed. toxav/msi.c, line 139 at r1 (raw file):
|
toxav/msi.c, line 139 at r1 (raw file): Previously, iphydf wrote…> No, but it can make it a precondition that you can assert instead of a soft error we never notice.Comments from Reviewable |
bf4705f
to
b72cc1d
Compare
Review status: 0 of 5 files reviewed at latest revision, 2 unresolved discussions. Comments from Reviewable |
b72cc1d
to
606a75b
Compare
606a75b
to
44ac196
Compare
Dereferencing
session
right after making sure that it's NULL is probably not a very good idea.This change is