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.
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.
You can declare straddr here thanks to C99!
const char *straddr = PyBytes_AS_STRING(args);
There was a problem hiding this comment.
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