Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
bpo-38319/gh-16491 (PR#82500) tried to fix the use ofos.sendfile() for larger than 2 GiB files on 32-bit FreeBSD. But it only fixedsocket.sendfile() for the case whencount is false. Ifcount is not false,blocksize is calculated ascount - total_sent in the loop, and can cause an integer overflow ifcount is larger than 2 GiB.