Skip to content

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Nov 2, 2017

  • 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.

https://bugs.python.org/issue31927

* 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.
Copy link
Member

@vstinner vstinner left a 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);
Copy link
Member

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);

Copy link
Member Author

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.

@serhiy-storchaka serhiy-storchaka merged commit d318715 into python:master Nov 9, 2017
@miss-islington
Copy link
Contributor

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 2.7, 3.6.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@serhiy-storchaka serhiy-storchaka deleted the netbsd8-socket branch November 9, 2017 16:00
@miss-islington
Copy link
Contributor

Sorry, @serhiy-storchaka, I could not cleanly backport this to 3.6 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker d3187158c09cf899e9849f335bdff10594209167 3.6

@miss-islington
Copy link
Contributor

Sorry, @serhiy-storchaka, I could not cleanly backport this to 2.7 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker d3187158c09cf899e9849f335bdff10594209167 2.7

serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request Nov 9, 2017
…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)
@bedevere-bot
Copy link

GH-4352 is a backport of this pull request to the 3.6 branch.

serhiy-storchaka added a commit that referenced this pull request Nov 9, 2017
…s. (GH-4235) (#4352)

* 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)
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request Nov 9, 2017
… address (pythonGH-4235) (pythonGH-4352)

on NetBSD and DragonFly BSD.
(cherry picked from commit d318715).
(cherry picked from commit 596286f)
@bedevere-bot
Copy link

GH-4355 is a backport of this pull request to the 2.7 branch.

serhiy-storchaka added a commit that referenced this pull request Nov 9, 2017
… address (GH-4235) (GH-4352) (#4355)

on NetBSD and DragonFly BSD.
(cherry picked from commit d318715).
(cherry picked from commit 596286f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants