-
Notifications
You must be signed in to change notification settings - Fork 183
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
Dereference of null in alloc_query_params #580
Comments
The memory management in The validity of Lines 504 to 514 in 64fe4c1
Then the function pointer enc_func is called with a NULL pointer as this (and that's probably what the static analyzer is complaining about):Lines 1301 to 1305 in 64fe4c1
So, if |
Hi there!
Static analyzer shows this warning:
After having been compared to a NULL value at
ruby-pg/ext/pg_connection.c
Line 1277 in 764f6d5
pointer 'conv' is dereferenced at
ruby-pg/ext/pg_connection.c
Line 1301 in 764f6d5
I can see the check of param_value before: if( NIL_P(param_value) ). It's somehow connected with 'conv'.
But It seems to be true positive. Should we check the 'conv' for null one more time?
The text was updated successfully, but these errors were encountered: