Title: PyUnicode_DecodeUTF8Stateful() does not set *consumed for ASCII-only string · Issue #99612 · python/cpython · GitHub
Open Graph Title: PyUnicode_DecodeUTF8Stateful() does not set *consumed for ASCII-only string · Issue #99612 · python/cpython
X Title: PyUnicode_DecodeUTF8Stateful() does not set *consumed for ASCII-only string · Issue #99612 · python/cpython
Description: PyUnicode_DecodeUTF8Stateful() should save the number of successfully decoded bytes in *consumed. But if all bytes are in the ASCII range, it uses a fast path and does not set *consumed. It was found during writing coverage tests for Uni...
Open Graph Description: PyUnicode_DecodeUTF8Stateful() should save the number of successfully decoded bytes in *consumed. But if all bytes are in the ASCII range, it uses a fast path and does not set *consumed. It was fou...
X Description: PyUnicode_DecodeUTF8Stateful() should save the number of successfully decoded bytes in *consumed. But if all bytes are in the ASCII range, it uses a fast path and does not set *consumed. It was fou...
Opengraph URL: https://github.com/python/cpython/issues/99612
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PyUnicode_DecodeUTF8Stateful() does not set *consumed for ASCII-only string","articleBody":"`PyUnicode_DecodeUTF8Stateful()` should save the number of successfully decoded bytes in `*consumed`. But if all bytes are in the ASCII range, it uses a fast path and does not set `*consumed`.\r\n\r\nIt was found during writing coverage tests for Unicode C API (#99593).\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-99613\n* gh-107224\n* gh-107230\n* gh-107231\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/serhiy-storchaka","@type":"Person","name":"serhiy-storchaka"},"datePublished":"2022-11-20T07:49:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/99612/cpython/issues/99612"}
| 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:4b0f8b00-2bb3-3f8c-dbf5-3de65f9d4d7d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B262:17997A:8EDE3B:BFD02D:6969BE89 |
| html-safe-nonce | 65ddd3170f1ba98410578914e0130413e25d14d342572655a0bb6c9bdef061b3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjYyOjE3OTk3QTo4RURFM0I6QkZEMDJEOjY5NjlCRTg5IiwidmlzaXRvcl9pZCI6IjMxOTM1NjE3NTY5MTg3MjYyODEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 339216e5b7f9244095698e6765e234e92a8d4284fe8914fc64dfa4366c5887c0 |
| hovercard-subject-tag | issue:1456807413 |
| 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/99612/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6f0237361a494b43b8c1dc10ede8f66c8b7a78c5d24a27e09da7509844d2da24/python/cpython/issues/99612 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6f0237361a494b43b8c1dc10ede8f66c8b7a78c5d24a27e09da7509844d2da24/python/cpython/issues/99612 |
| og:image:alt | PyUnicode_DecodeUTF8Stateful() should save the number of successfully decoded bytes in *consumed. But if all bytes are in the ASCII range, it uses a fast path and does not set *consumed. It was fou... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | serhiy-storchaka |
| hostname | github.com |
| expected-hostname | github.com |
| None | acedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056 |
| 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 | 83c08c21cdda978090dc44364b71aa5bc6dcea79 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width