Title: socket.sendfile(): os.sendfile() can fail with OverflowError on 32-bit system · Issue #114077 · python/cpython · GitHub
Open Graph Title: socket.sendfile(): os.sendfile() can fail with OverflowError on 32-bit system · Issue #114077 · python/cpython
X Title: socket.sendfile(): os.sendfile() can fail with OverflowError on 32-bit system · Issue #114077 · python/cpython
Description: Bug report bpo-38319/gh-16491 (PR #82500) tried to fix the use of os.sendfile() for larger than 2 GiB files on 32-bit FreeBSD. But it only fixed socket.sendfile() for the case when count is false. If count is not false, blocksize is calc...
Open Graph Description: Bug report bpo-38319/gh-16491 (PR #82500) tried to fix the use of os.sendfile() for larger than 2 GiB files on 32-bit FreeBSD. But it only fixed socket.sendfile() for the case when count is false. ...
X Description: Bug report bpo-38319/gh-16491 (PR #82500) tried to fix the use of os.sendfile() for larger than 2 GiB files on 32-bit FreeBSD. But it only fixed socket.sendfile() for the case when count is false. ...
Opengraph URL: https://github.com/python/cpython/issues/114077
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"socket.sendfile(): os.sendfile() can fail with OverflowError on 32-bit system","articleBody":"# Bug report\n\nbpo-38319/gh-16491 (PR #82500) tried to fix the use of `os.sendfile()` for larger than 2 GiB files on 32-bit FreeBSD. But it only fixed `socket.sendfile()` for the case when `count` is false. If `count` is not false, `blocksize` is calculated as `count - total_sent` in the loop, and can cause an integer overflow if `count` is larger than 2 GiB.\n\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-114079\n* gh-114110\n* gh-114111\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/serhiy-storchaka","@type":"Person","name":"serhiy-storchaka"},"datePublished":"2024-01-15T09:48:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/114077/cpython/issues/114077"}
| 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:9af066a0-1d80-e755-5658-f09418feada3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8FBA:1F19:200D1EF:2DF76A6:6A4F766F |
| html-safe-nonce | 722bf8d3f88e579f61e606fc00b99e236a9f5815c193c9ff135369eeef92ba91 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RkJBOjFGMTk6MjAwRDFFRjoyREY3NkE2OjZBNEY3NjZGIiwidmlzaXRvcl9pZCI6IjU1MjYxNDQzMDA1MjQ0Njc4MjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 777a3e3b47c8ab6029cc7614c0e38ba1a035ff88a827ebb2806680b67b122040 |
| hovercard-subject-tag | issue:2081648442 |
| 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/114077/issue_layout |
| twitter:image | https://opengraph.githubassets.com/693f1481eb1723051973f2eb66a1b070838cfa7a4d8712b04d38ba0056b24371/python/cpython/issues/114077 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/693f1481eb1723051973f2eb66a1b070838cfa7a4d8712b04d38ba0056b24371/python/cpython/issues/114077 |
| og:image:alt | Bug report bpo-38319/gh-16491 (PR #82500) tried to fix the use of os.sendfile() for larger than 2 GiB files on 32-bit FreeBSD. But it only fixed socket.sendfile() for the case when count is false. ... |
| 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 | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| 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 | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width