Skip to content

platform.architecture does not correctly escape argument to /usr/bin/file #60316

@DavidBenjamin

Description

@DavidBenjamin
BPO 16112
Nosy @malemburg, @jcea, @pitrou, @vstinner, @tiran
Files
  • fix-platform-architecture.patch: Use subprocess instead of os.popen to run file
  • platform.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 = 'https://github.com/jcea'
    closed_at = <Date 2016-09-09.07:34:22.855>
    created_at = <Date 2012-10-02.19:15:16.864>
    labels = ['type-security', 'library']
    title = 'platform.architecture does not correctly escape argument to /usr/bin/file'
    updated_at = <Date 2016-09-09.07:38:04.571>
    user = 'https://bugs.python.org/DavidBenjamin'

    bugs.python.org fields:

    activity = <Date 2016-09-09.07:38:04.571>
    actor = 'vstinner'
    assignee = 'jcea'
    closed = True
    closed_date = <Date 2016-09-09.07:34:22.855>
    closer = 'vstinner'
    components = ['Library (Lib)']
    creation = <Date 2012-10-02.19:15:16.864>
    creator = 'David.Benjamin'
    dependencies = []
    files = ['27391', '27427']
    hgrepos = []
    issue_num = 16112
    keywords = ['patch']
    message_count = 36.0
    messages = ['171825', '171934', '171936', '171937', '171939', '171940', '171942', '171944', '171957', '171982', '171999', '172017', '172021', '172022', '172023', '172024', '172026', '172043', '172044', '172045', '172046', '172047', '172050', '172052', '172055', '172057', '172075', '172085', '172172', '172533', '173265', '275212', '275254', '275278', '275280', '275281']
    nosy_count = 8.0
    nosy_names = ['lemburg', 'jcea', 'pitrou', 'vstinner', 'christian.heimes', 'Arfrever', 'python-dev', 'David.Benjamin']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'needs patch'
    status = 'closed'
    superseder = None
    type = 'security'
    url = 'https://bugs.python.org/issue16112'
    versions = ['Python 2.7', 'Python 3.2', 'Python 3.3', 'Python 3.4']

    Metadata

    Metadata

    Assignees

    Labels

    stdlibPython modules in the Lib dirtype-securityA security issue

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions