Repository navigation
Commit cc36604
authored
Clearing an Unpickler memo left its sequential index and sparse entries intact, so reusing the unpickler for an independent record could raise UnpicklingError or retrieve an object from a previous record. Replace the memo and reset all of its state before releasing the old entries. Backport to 3.15; manually backport only the counter reset to 3.14, which has no sparse memo.
1 parent 0b8bb71 commit cc36604
3 files changed
Lines changed: 33 additions & 9 deletions
File tree
- Lib/test
- Misc/NEWS.d/next/Library
- Modules
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5299 | 5299 | | |
5300 | 5300 | | |
5301 | 5301 | | |
| 5302 | + | |
| 5303 | + | |
| 5304 | + | |
| 5305 | + | |
| 5306 | + | |
| 5307 | + | |
| 5308 | + | |
| 5309 | + | |
| 5310 | + | |
| 5311 | + | |
| 5312 | + | |
| 5313 | + | |
| 5314 | + | |
| 5315 | + | |
| 5316 | + | |
| 5317 | + | |
5302 | 5318 | | |
5303 | 5319 | | |
5304 | 5320 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1762 | 1762 | | |
1763 | 1763 | | |
1764 | 1764 | | |
1765 | | - | |
| 1765 | + | |
1766 | 1766 | | |
1767 | | - | |
| 1767 | + | |
1768 | 1768 | | |
1769 | 1769 | | |
1770 | 1770 | | |
1771 | 1771 | | |
1772 | | - | |
| 1772 | + | |
| 1773 | + | |
1773 | 1774 | | |
1774 | | - | |
1775 | 1775 | | |
1776 | 1776 | | |
1777 | 1777 | | |
| |||
7769 | 7769 | | |
7770 | 7770 | | |
7771 | 7771 | | |
7772 | | - | |
| 7772 | + | |
7773 | 7773 | | |
7774 | 7774 | | |
7775 | 7775 | | |
| |||
7916 | 7916 | | |
7917 | 7917 | | |
7918 | 7918 | | |
7919 | | - | |
7920 | | - | |
7921 | | - | |
| 7919 | + | |
| 7920 | + | |
| 7921 | + | |
7922 | 7922 | | |
| 7923 | + | |
| 7924 | + | |
| 7925 | + | |
| 7926 | + | |
| 7927 | + | |
| 7928 | + | |
7923 | 7929 | | |
7924 | 7930 | | |
7925 | 7931 | | |
| |||
8124 | 8130 | | |
8125 | 8131 | | |
8126 | 8132 | | |
8127 | | - | |
| 8133 | + | |
8128 | 8134 | | |
8129 | 8135 | | |
8130 | 8136 | | |
| |||
0 commit comments