Skip to content

[3.8] bpo-38282: Rewrite getsockaddrarg() helper function (GH-16698)#16706

Closed
miss-islington wants to merge 1 commit into
python:3.8from
miss-islington:backport-d565fb9-3.8
Closed

[3.8] bpo-38282: Rewrite getsockaddrarg() helper function (GH-16698)#16706
miss-islington wants to merge 1 commit into
python:3.8from
miss-islington:backport-d565fb9-3.8

Conversation

@miss-islington

@miss-islington miss-islington commented Oct 10, 2019

Copy link
Copy Markdown
Contributor

Rewrite getsockaddrarg() helper function of socketmodule.c (_socket
module) to prevent a false alarm when compiling codde using GCC with
_FORTIFY_SOURCE=2. Pass a pointer of the sock_addr_t union, rather
than passing a pointer to a sockaddr structure.

Add "struct sockaddr_tipc tipc;" to the sock_addr_t union.
(cherry picked from commit d565fb9)

Co-authored-by: Victor Stinner vstinner@python.org

https://bugs.python.org/issue38282

Rewrite getsockaddrarg() helper function of socketmodule.c (_socket
module) to prevent a false alarm when compiling codde using GCC with
_FORTIFY_SOURCE=2. Pass a pointer of the sock_addr_t union, rather
than passing a pointer to a sockaddr structure.

Add "struct sockaddr_tipc tipc;" to the sock_addr_t union.
(cherry picked from commit d565fb9)

Co-authored-by: Victor Stinner <vstinner@python.org>
@vstinner

Copy link
Copy Markdown
Member

There are failures on FreeBSD. I close the backport.

@vstinner vstinner closed this Oct 10, 2019
@miss-islington miss-islington deleted the backport-d565fb9-3.8 branch October 10, 2019 19:42
@miss-islington

Copy link
Copy Markdown
Contributor Author

@vstinner: Status check is done, and it's a failure ❌ .

2 similar comments
@miss-islington

Copy link
Copy Markdown
Contributor Author

@vstinner: Status check is done, and it's a failure ❌ .

@miss-islington

Copy link
Copy Markdown
Contributor Author

@vstinner: Status check is done, and it's a failure ❌ .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants