Skip to content

Checking len bounds after usage in bytesio.c #131505

Closed
@naya451

Description

@naya451

In _io_BytesIO_readinto_impl() len value is used in memcpy and then checked for being positive.
It's better to move assertions before memcpy.

This may be done with the following commit: da720c1

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions