Commit 88fc5c2
committed
gh-111178: Fix getsockaddrarg() undefined behavior
Don't pass direct references to sockaddr members since their type may
not match PyArg_ParseTuple() types. Instead, use temporary 'int' and
'unsigned char' variables, and update sockaddr members afterwards.1 parent 4596666 commit 88fc5c2
1 file changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2045 | 2045 | | |
2046 | 2046 | | |
2047 | 2047 | | |
| 2048 | + | |
| 2049 | + | |
| 2050 | + | |
2048 | 2051 | | |
2049 | | - | |
2050 | | - | |
2051 | | - | |
| 2052 | + | |
| 2053 | + | |
| 2054 | + | |
2052 | 2055 | | |
2053 | 2056 | | |
2054 | 2057 | | |
2055 | 2058 | | |
| 2059 | + | |
| 2060 | + | |
| 2061 | + | |
| 2062 | + | |
2056 | 2063 | | |
2057 | 2064 | | |
2058 | 2065 | | |
| |||
0 commit comments