Skip to content

SpooledTemporaryFile rollover corrupts data silently when Unicode characters are written #70917

@JamesHennessy

Description

@JamesHennessy
BPO 26730
Nosy @bitdancer, @methane, @vadmium, @serhiy-storchaka, @miss-islington, @tirkarthi, @grumBit
PRs
  • bpo-26730: Fix SpooledTemporaryFile data corruption #17400
  • [3.8] bpo-26730: Fix SpooledTemporaryFile data corruption (GH-17400) #17405
  • [3.7] bpo-26730: Fix SpooledTemporaryFile data corruption (GH-17400) #17407
  • Files
  • showbug.py: A program to demonstrate the bug
  • spooled_text_tempfile.patch
  • 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 2019-11-28.05:38:48.497>
    created_at = <Date 2016-04-10.19:11:43.436>
    labels = ['3.7', '3.8', 'type-bug', 'library', '3.9']
    title = 'SpooledTemporaryFile rollover corrupts data silently when Unicode characters are written'
    updated_at = <Date 2019-11-28.08:27:28.265>
    user = 'https://bugs.python.org/JamesHennessy'

    bugs.python.org fields:

    activity = <Date 2019-11-28.08:27:28.265>
    actor = 'xtreak'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-11-28.05:38:48.497>
    closer = 'methane'
    components = ['Library (Lib)']
    creation = <Date 2016-04-10.19:11:43.436>
    creator = 'James Hennessy'
    dependencies = []
    files = ['42423', '42424']
    hgrepos = []
    issue_num = 26730
    keywords = ['patch']
    message_count = 24.0
    messages = ['263147', '263148', '263150', '263157', '263698', '263707', '263708', '339029', '339590', '357474', '357491', '357505', '357506', '357510', '357521', '357550', '357558', '357570', '357595', '357596', '357602', '357603', '357604', '357613']
    nosy_count = 8.0
    nosy_names = ['r.david.murray', 'methane', 'martin.panter', 'serhiy.storchaka', 'James Hennessy', 'miss-islington', 'xtreak', 'graham.coster']
    pr_nums = ['17400', '17405', '17407']
    priority = 'critical'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue26730'
    versions = ['Python 3.7', 'Python 3.8', 'Python 3.9']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of life3.8 (EOL)end of life3.9 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions