-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
Closed
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
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 calculated as count - total_sent in the loop, and can cause an integer overflow if count is larger than 2 GiB.
Linked PRs
Metadata
Metadata
Assignees
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error