Skip to content

putenv() accepts names containing '=', return value of unsetenv() not checked #49176

@baikie

Description

@baikie
mannequin
BPO 4926
Nosy @loewis, @pefu, @amauryfa, @serhiy-storchaka, @eryksun
PRs
  • bpo-30746: Prohibited the '=' character in environment variable names #2382
  • Files
  • visibility.diff: Make bugs visible for testing
  • 2.x.diff: Fix for Python 2.x
  • 3.x.diff: Fix for Python 3.x
  • putenv-equals-2.x.diff: Make posix.putenv() raise ValueError if name contains an '=' character
  • putenv-empty-2.x.diff: Make posix.putenv() raise ValueError if name is empty
  • putenv-equals-3.x.diff: Make posix.putenv() raise ValueError if name contains an '=' character
  • putenv-empty-3.x.diff: Make posix.putenv() raise ValueError if name is empty
  • visibility-2.x.diff: Make posix_putenv_garbage visible, print unsetenv() return value
  • visibility-3.x.diff: Make posix_putenv_garbage visible, print unsetenv() return value
  • 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-03-22.09:27:46.810>
    created_at = <Date 2009-01-12.23:30:21.260>
    labels = ['extension-modules', 'type-bug']
    title = "putenv() accepts names containing '=', return value of unsetenv() not checked"
    updated_at = <Date 2020-03-22.09:27:46.810>
    user = 'https://bugs.python.org/baikie'

    bugs.python.org fields:

    activity = <Date 2020-03-22.09:27:46.810>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-03-22.09:27:46.810>
    closer = 'serhiy.storchaka'
    components = ['Extension Modules']
    creation = <Date 2009-01-12.23:30:21.260>
    creator = 'baikie'
    dependencies = []
    files = ['12708', '12709', '12710', '18185', '18186', '18187', '18188', '18189', '18190']
    hgrepos = []
    issue_num = 4926
    keywords = ['patch']
    message_count = 10.0
    messages = ['79708', '109614', '111036', '111503', '111535', '111549', '252363', '296815', '333144', '364791']
    nosy_count = 7.0
    nosy_names = ['loewis', 'pefu', 'amaury.forgeotdarc', 'ggenellina', 'baikie', 'serhiy.storchaka', 'eryksun']
    pr_nums = ['2382']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue4926'
    versions = ['Python 2.7', 'Python 3.4', 'Python 3.5', 'Python 3.6']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      extension-modulesC modules in the Modules dirtype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions