Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use-after-free in BufferedReader.readinto() #83691

Closed
phi-gamma mannequin opened this issue Jan 31, 2020 · 5 comments
Closed

use-after-free in BufferedReader.readinto() #83691

phi-gamma mannequin opened this issue Jan 31, 2020 · 5 comments

Comments

@phi-gamma
Copy link
Mannequin

phi-gamma mannequin commented Jan 31, 2020

BPO 39510
Nosy @benjaminp, @miss-islington, @phi-gamma
PRs
  • bpo-39510: Fix use-after-free in BufferedReader.readinto() #18295
  • [3.8] closes bpo-39510: Fix use-after-free in BufferedReader.readinto() (GH-18295) #18348
  • [3.7] closes bpo-39510: Fix use-after-free in BufferedReader.readinto() (GH-18295) #18349
  • [3.6] closes bpo-39510: Fix use-after-free in BufferedReader.readinto() (GH-18295) #18350
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2020-02-04.21:25:25.467>
    created_at = <Date 2020-01-31.15:19:52.093>
    labels = []
    title = 'use-after-free in BufferedReader.readinto()'
    updated_at = <Date 2020-02-04.22:06:49.851>
    user = 'https://github.com/phi-gamma'

    bugs.python.org fields:

    activity = <Date 2020-02-04.22:06:49.851>
    actor = 'benjamin.peterson'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-02-04.21:25:25.467>
    closer = 'benjamin.peterson'
    components = []
    creation = <Date 2020-01-31.15:19:52.093>
    creator = 'phg'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 39510
    keywords = ['patch']
    message_count = 5.0
    messages = ['361119', '361369', '361372', '361373', '361375']
    nosy_count = 3.0
    nosy_names = ['benjamin.peterson', 'miss-islington', 'phg']
    pr_nums = ['18295', '18348', '18349', '18350']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue39510'
    versions = []

    @phi-gamma
    Copy link
    Mannequin Author

    phi-gamma mannequin commented Jan 31, 2020

    reader = open ("/dev/zero", "rb")
        _void  = reader.read (42)
        reader.close ()
        reader.readinto (bytearray (42)) ### BANG!

    Bisected to commit dc46945. PR on Github to follow.

    @benjaminp
    Copy link
    Contributor

    New changeset cb1c074 by Philipp Gesang in branch 'master':
    closes bpo-39510: Fix use-after-free in BufferedReader.readinto() (GH-18295)
    cb1c074

    @miss-islington
    Copy link
    Contributor

    New changeset 30e7693 by Miss Islington (bot) in branch '3.8':
    closes bpo-39510: Fix use-after-free in BufferedReader.readinto() (GH-18295)
    30e7693

    @miss-islington
    Copy link
    Contributor

    New changeset 97d2a98 by Miss Islington (bot) in branch '3.7':
    closes bpo-39510: Fix use-after-free in BufferedReader.readinto() (GH-18295)
    97d2a98

    @benjaminp
    Copy link
    Contributor

    New changeset c352e6c by Miss Islington (bot) in branch '3.6':
    closes bpo-39510: Fix use-after-free in BufferedReader.readinto() (GH-18350)
    c352e6c

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    None yet
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants