Commit afb3f33
[3.12] pythongh-111178: Fix getsockaddrarg() undefined behavior (pythonGH-131668) (pythonGH-131977) (python#131979)
[3.13] pythongh-111178: Fix getsockaddrarg() undefined behavior (pythonGH-131668) (pythonGH-131977)
pythongh-111178: Fix getsockaddrarg() undefined behavior (pythonGH-131668)
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.
On FreeBSD, treat BTPROTO_HCI node name as a bytes string,
not as an integer.
(cherry picked from commit c318a03)
Co-authored-by: Victor Stinner <[email protected]>
(cherry picked from commit 8cd29c2)
Co-authored-by: Victor Stinner <[email protected]>1 parent 756676f commit afb3f33
File tree
2 files changed
+50
-11
lines changed- Misc/NEWS.d/next/Library
- Modules
2 files changed
+50
-11
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1491 | 1491 | | |
1492 | 1492 | | |
1493 | 1493 | | |
1494 | | - | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
1495 | 1499 | | |
1496 | 1500 | | |
1497 | 1501 | | |
1498 | | - | |
| 1502 | + | |
1499 | 1503 | | |
1500 | 1504 | | |
1501 | 1505 | | |
| |||
2014 | 2018 | | |
2015 | 2019 | | |
2016 | 2020 | | |
2017 | | - | |
2018 | | - | |
| 2021 | + | |
| 2022 | + | |
2019 | 2023 | | |
2020 | 2024 | | |
2021 | 2025 | | |
2022 | 2026 | | |
| 2027 | + | |
| 2028 | + | |
2023 | 2029 | | |
2024 | 2030 | | |
2025 | 2031 | | |
| |||
2032 | 2038 | | |
2033 | 2039 | | |
2034 | 2040 | | |
2035 | | - | |
2036 | | - | |
2037 | | - | |
2038 | | - | |
| 2041 | + | |
| 2042 | + | |
| 2043 | + | |
| 2044 | + | |
| 2045 | + | |
| 2046 | + | |
| 2047 | + | |
| 2048 | + | |
| 2049 | + | |
| 2050 | + | |
2039 | 2051 | | |
2040 | 2052 | | |
| 2053 | + | |
| 2054 | + | |
| 2055 | + | |
2041 | 2056 | | |
2042 | 2057 | | |
2043 | 2058 | | |
| |||
2059 | 2074 | | |
2060 | 2075 | | |
2061 | 2076 | | |
2062 | | - | |
| 2077 | + | |
| 2078 | + | |
| 2079 | + | |
| 2080 | + | |
| 2081 | + | |
| 2082 | + | |
| 2083 | + | |
| 2084 | + | |
| 2085 | + | |
| 2086 | + | |
| 2087 | + | |
| 2088 | + | |
| 2089 | + | |
| 2090 | + | |
| 2091 | + | |
| 2092 | + | |
| 2093 | + | |
| 2094 | + | |
| 2095 | + | |
| 2096 | + | |
| 2097 | + | |
| 2098 | + | |
2063 | 2099 | | |
2064 | | - | |
| 2100 | + | |
| 2101 | + | |
2065 | 2102 | | |
2066 | 2103 | | |
2067 | 2104 | | |
2068 | 2105 | | |
2069 | | - | |
| 2106 | + | |
| 2107 | + | |
2070 | 2108 | | |
2071 | 2109 | | |
2072 | 2110 | | |
| |||
0 commit comments