Skip to content

io.open() doesn't check for embedded NUL characters #58056

@pitrou

Description

@pitrou
BPO 13848
Nosy @terryjreedy, @pitrou, @alex, @hynek
Files
  • open-nul.patch: Fix for non-Win32 platforms
  • open-nul.patch: Fix for all platforms, adds _PyUnicode_HasNULChars
  • open-nul.patch: Fix for all platforms, adds _PyUnicode_HasNULChars, caches nul string
  • 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 2012-01-29.17:50:08.408>
    created_at = <Date 2012-01-24.02:03:19.533>
    labels = ['easy', 'type-bug', 'library', 'expert-IO']
    title = "io.open() doesn't check for embedded NUL characters"
    updated_at = <Date 2012-01-29.17:50:08.406>
    user = 'https://github.com/pitrou'

    bugs.python.org fields:

    activity = <Date 2012-01-29.17:50:08.406>
    actor = 'pitrou'
    assignee = 'none'
    closed = True
    closed_date = <Date 2012-01-29.17:50:08.408>
    closer = 'pitrou'
    components = ['Library (Lib)', 'IO']
    creation = <Date 2012-01-24.02:03:19.533>
    creator = 'pitrou'
    dependencies = []
    files = ['24316', '24355', '24356']
    hgrepos = []
    issue_num = 13848
    keywords = ['patch', 'easy']
    message_count = 13.0
    messages = ['151876', '151899', '151902', '151906', '151913', '152075', '152077', '152139', '152224', '152225', '152244', '152248', '152250']
    nosy_count = 5.0
    nosy_names = ['terry.reedy', 'pitrou', 'alex', 'python-dev', 'hynek']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue13848'
    versions = ['Python 2.7', 'Python 3.2', 'Python 3.3']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      easystdlibPython modules in the Lib dirtopic-IOtype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions