Repository navigation
Commit fe3ccb4
pythongh-155460: Only pre-size zstd1 frames; match libzstd's default window limit
frame_output_size() now requires the zstd1 magic number. libzstd also
accepts legacy (v0.5-v0.7) frames in ZSTD_getFrameContentSize(), but
their headers have another layout and they are never decoded in a
single pass.
DEFAULT_MAX_WINDOW_SIZE is now (1 << 27) + 1, matching libzstd's
ZSTD_MAXWINDOWSIZE_DEFAULT, so frames that libzstd accepts by default
are not refused by the window check.
Reword the NEWS entry so it is not specific to Windows.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent 2a2abc6 commit fe3ccb4
2 files changed
Lines changed: 16 additions & 7 deletions
File tree
- Misc/NEWS.d/next/Library
- Modules/_zstd
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | | - | |
92 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
219 | 228 | | |
220 | 229 | | |
221 | 230 | | |
| |||
0 commit comments