Title: _zstd: Fix printf format for pledged size errors · Issue #146578 · python/cpython · GitHub
Open Graph Title: _zstd: Fix printf format for pledged size errors · Issue #146578 · python/cpython
X Title: _zstd: Fix printf format for pledged size errors · Issue #146578 · python/cpython
Description: Problem In zstd_contentsize_converter (Modules/_zstd/compressor.c), ValueError messages use the format specifier %ull when printing ZSTD_CONTENTSIZE_ERROR. The correct C99 format for unsigned long long is %llu; %ull is invalid. Proposed ...
Open Graph Description: Problem In zstd_contentsize_converter (Modules/_zstd/compressor.c), ValueError messages use the format specifier %ull when printing ZSTD_CONTENTSIZE_ERROR. The correct C99 format for unsigned long ...
X Description: Problem In zstd_contentsize_converter (Modules/_zstd/compressor.c), ValueError messages use the format specifier %ull when printing ZSTD_CONTENTSIZE_ERROR. The correct C99 format for unsigned long ...
Opengraph URL: https://github.com/python/cpython/issues/146578
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"_zstd: Fix printf format for pledged size errors","articleBody":"## Problem\n\nIn `zstd_contentsize_converter` (`Modules/_zstd/compressor.c`), ValueError messages use the format specifier `%ull` when printing `ZSTD_CONTENTSIZE_ERROR`. The correct C99 format for `unsigned long long` is `%llu`; `%ull` is invalid.\n\n## Proposed fix\n\nReplace `%ull` with `%llu` in both error paths.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-146576\n* gh-148855\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/cuiweixie","@type":"Person","name":"cuiweixie"},"datePublished":"2026-03-28T15:45:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/146578/cpython/issues/146578"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:aafdf19c-7c16-f70b-0a5c-a0b0b3fb4cc4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A39E:1CD42A:2A2317E:39BDBE3:6A50570A |
| html-safe-nonce | 22e5c711cbebd892f0321f26a598b0e7a88fb9538697889927dcb5d46f516d4e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzlFOjFDRDQyQToyQTIzMTdFOjM5QkRCRTM6NkE1MDU3MEEiLCJ2aXNpdG9yX2lkIjoiNjI5MDI0NjYwNzcxMjU3MzE5NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1600d5b4b131fb92208e8ed4d8893577a04b0aba2d320ef56ad263995433a6ec |
| hovercard-subject-tag | issue:4160493311 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/python/cpython/146578/issue_layout |
| twitter:image | https://opengraph.githubassets.com/50f0ff38aebde0c3a988f34987f56b15abe163b8d2c159c113d4b51ea333dfde/python/cpython/issues/146578 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/50f0ff38aebde0c3a988f34987f56b15abe163b8d2c159c113d4b51ea333dfde/python/cpython/issues/146578 |
| og:image:alt | Problem In zstd_contentsize_converter (Modules/_zstd/compressor.c), ValueError messages use the format specifier %ull when printing ZSTD_CONTENTSIZE_ERROR. The correct C99 format for unsigned long ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cuiweixie |
| hostname | github.com |
| expected-hostname | github.com |
| None | d6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7ac0ad2f2c7e4b9056617355fd9e33e22b0c8df9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width