Skip to content

[3.6] bpo-33871: Fix os.sendfile(), os.writev(), os.readv(), etc. (GH-7931)#8584

Merged
serhiy-storchaka merged 2 commits into
python:3.6from
serhiy-storchaka:backport-9d57273-3.6
Jul 31, 2018
Merged

[3.6] bpo-33871: Fix os.sendfile(), os.writev(), os.readv(), etc. (GH-7931)#8584
serhiy-storchaka merged 2 commits into
python:3.6from
serhiy-storchaka:backport-9d57273-3.6

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Jul 31, 2018

Copy link
Copy Markdown
Member
  • Fix integer overflow in os.readv(), os.writev(), os.preadv()
    and os.pwritev() and in os.sendfile() with headers or trailers
    arguments (on BSD-based OSes and MacOS).

  • Fix sending the part of the file in os.sendfile() on MacOS.
    Using the trailers argument could cause sending more bytes from
    the input file than was specified.

Thanks Ned Deily for testing on 32-bit MacOS.
(cherry picked from commit 9d57273)

https://bugs.python.org/issue33871

…thonGH-7931)

* Fix integer overflow in os.readv(), os.writev(), os.preadv()
  and os.pwritev() and in os.sendfile() with headers or trailers
  arguments (on BSD-based OSes and MacOS).

* Fix sending the part of the file in os.sendfile() on MacOS.
  Using the trailers argument could cause sending more bytes from
  the input file than was specified.

Thanks Ned Deily for testing on 32-bit MacOS..
(cherry picked from commit 9d57273)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@serhiy-storchaka
serhiy-storchaka merged commit ada5d99 into python:3.6 Jul 31, 2018
@serhiy-storchaka
serhiy-storchaka deleted the backport-9d57273-3.6 branch July 31, 2018 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error type-security A security issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants