Title: gh-133998: Fix tarfile error on out-of-range mtime in streaming gzip mode by harjothkhara · Pull Request #151828 · python/cpython · GitHub
Open Graph Title: gh-133998: Fix tarfile error on out-of-range mtime in streaming gzip mode by harjothkhara · Pull Request #151828 · python/cpython
X Title: gh-133998: Fix tarfile error on out-of-range mtime in streaming gzip mode by harjothkhara · Pull Request #151828 · python/cpython
Description: A streaming gzip tarball ("w|gz") with an out-of-range mtime (negative, or a clock past 2106) raises struct.error instead of writing the file. gzip already clamps these to 0 (GH-134278); this does the same for tarfile's streaming path. The non-streaming w:gz path uses GzipFile, so it was already fine. Added tests for the boundary and bad-clock cases. AI-assisted; I reviewed it and can explain it. Issue: gh-133998
Open Graph Description: A streaming gzip tarball ("w|gz") with an out-of-range mtime (negative, or a clock past 2106) raises struct.error instead of writing the file. gzip already clamps these to 0 (GH-134278); ...
X Description: A streaming gzip tarball ("w|gz") with an out-of-range mtime (negative, or a clock past 2106) raises struct.error instead of writing the file. gzip already clamps these to 0 (GH-1...
Opengraph URL: https://github.com/python/cpython/pull/151828
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:1e2dcf65-6279-b37d-b9da-b12ab095be48 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8668:15A51:29B9705:3B61814:6A5109BC |
| html-safe-nonce | f7e3a6cc9fd79babf6cbd89b889daac37d2653f26f34d8367163478a0304f44f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NjY4OjE1QTUxOjI5Qjk3MDU6M0I2MTgxNDo2QTUxMDlCQyIsInZpc2l0b3JfaWQiOiI0OTQyMDY4OTQ0ODY3NDk0MzMyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 90b51434a6692bc60ab50c7b1d1db513f6f543ebe907a9c621caea91015d2bc7 |
| hovercard-subject-tag | pull_request:3905770705 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/151828/files |
| twitter:image | https://avatars.githubusercontent.com/u/48686985?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/48686985?s=400&v=4 |
| og:image:alt | A streaming gzip tarball ("w|gz") with an out-of-range mtime (negative, or a clock past 2106) raises struct.error instead of writing the file. gzip already clamps these to 0 (GH-134278); ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b076e100febaa00374cd89239f915d00dd3187f7c68b12bc2b7688181305344d |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2d129404fc45ea64edb1b98567c53e55b395536f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width