-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
bpo-31927: Fix bugs in socketmodule.c on NetBSD and other issues. #4235
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
bpo-31927: Fix bugs in socketmodule.c on NetBSD and other issues. #4235
Conversation
* Fix compilation of the socket module on NetBSD 8. * Fix the assertion failure or reading arbitrary data when parse a AF_BLUETOOTH address on NetBSD and DragonFly BSD. * Fix other potential errors and make the code more reliable.
vstinner
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I just don't feel able to review the non-straighforward changes on the CAN protocol.
| "wrong format"); | ||
| return 0; | ||
| } | ||
| straddr = PyBytes_AS_STRING(args); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can declare straddr here thanks to C99!
const char *straddr = PyBytes_AS_STRING(args);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change will be backported.
|
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 2.7, 3.6. |
|
Sorry, @serhiy-storchaka, I could not cleanly backport this to |
|
Sorry, @serhiy-storchaka, I could not cleanly backport this to |
…s. (pythonGH-4235) * Fix compilation of the socket module on NetBSD 8. * Fix the assertion failure or reading arbitrary data when parse a AF_BLUETOOTH address on NetBSD and DragonFly BSD. * Fix other potential errors and make the code more reliable.. (cherry picked from commit d318715)
|
GH-4352 is a backport of this pull request to the 3.6 branch. |
… address (pythonGH-4235) (pythonGH-4352) on NetBSD and DragonFly BSD. (cherry picked from commit d318715). (cherry picked from commit 596286f)
|
GH-4355 is a backport of this pull request to the 2.7 branch. |
a AF_BLUETOOTH address on NetBSD and DragonFly BSD.
https://bugs.python.org/issue31927