Commit eab421b
authored
They can be exposed when some C API calls fail due to lack of
memory.
* Failed Py_BuildValue() could cause an assertion error in the
following TextIOWrapper.tell().
* initvalue could leak in StringIO.__getstate__() after failed
PyDict_Copy().
(cherry picked from commit fdb5a50)
1 parent 8687bd8 commit eab421b
2 files changed
+17
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
693 | 693 | | |
694 | 694 | | |
695 | 695 | | |
696 | | - | |
| 696 | + | |
| 697 | + | |
697 | 698 | | |
| 699 | + | |
698 | 700 | | |
699 | 701 | | |
700 | 702 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1466 | 1466 | | |
1467 | 1467 | | |
1468 | 1468 | | |
| 1469 | + | |
1469 | 1470 | | |
1470 | 1471 | | |
1471 | 1472 | | |
| |||
1477 | 1478 | | |
1478 | 1479 | | |
1479 | 1480 | | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
1480 | 1487 | | |
1481 | | - | |
1482 | 1488 | | |
1483 | 1489 | | |
1484 | 1490 | | |
| |||
2013 | 2019 | | |
2014 | 2020 | | |
2015 | 2021 | | |
| 2022 | + | |
2016 | 2023 | | |
2017 | 2024 | | |
2018 | 2025 | | |
| |||
2149 | 2156 | | |
2150 | 2157 | | |
2151 | 2158 | | |
2152 | | - | |
2153 | | - | |
2154 | | - | |
| 2159 | + | |
| 2160 | + | |
2155 | 2161 | | |
2156 | 2162 | | |
| 2163 | + | |
2157 | 2164 | | |
2158 | 2165 | | |
2159 | 2166 | | |
| |||
2171 | 2178 | | |
2172 | 2179 | | |
2173 | 2180 | | |
2174 | | - | |
2175 | | - | |
| 2181 | + | |
| 2182 | + | |
2176 | 2183 | | |
| 2184 | + | |
2177 | 2185 | | |
2178 | 2186 | | |
2179 | 2187 | | |
| |||
0 commit comments