Skip to content

email.message.Message.get_payload(decode=True) raises AssertionError that "should never happen" #71584

Description

@ClaudiuSaftoiu
BPO 27397
Nosy @taleinat, @ned-deily, @bitdancer
PRs
  • bpo-27397: Make email module properly handle invalid-length base64 strings #7583
  • [3.7] bpo-27397: Make email module properly handle invalid-length base64 strings (GH-7583) #7664
  • [3.6] bpo-27397: Make email module properly handle invalid-length base64 strings (GH-7583) #7665
  • Files
  • bugreport.py: File to reproduce the bug
  • bugreport_moretests.py: more test cases
  • issue27397_poc.py: Script that will reproduce the bug
  • issue27397_poc_minimal.py: Minimal script to reproduce the bug
  • 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/bitdancer'
    closed_at = <Date 2018-06-12.13:47:42.399>
    created_at = <Date 2016-06-27.04:52:48.741>
    labels = ['3.7', '3.8', 'type-bug', 'library']
    title = 'email.message.Message.get_payload(decode=True) raises AssertionError that "should never happen"'
    updated_at = <Date 2018-06-12.13:47:42.397>
    user = 'https://bugs.python.org/ClaudiuSaftoiu'

    bugs.python.org fields:

    activity = <Date 2018-06-12.13:47:42.397>
    actor = 'taleinat'
    assignee = 'r.david.murray'
    closed = True
    closed_date = <Date 2018-06-12.13:47:42.399>
    closer = 'taleinat'
    components = ['Library (Lib)']
    creation = <Date 2016-06-27.04:52:48.741>
    creator = 'Claudiu Saftoiu'
    dependencies = []
    files = ['43556', '43557', '43921', '43922']
    hgrepos = []
    issue_num = 27397
    keywords = ['patch']
    message_count = 17.0
    messages = ['269346', '269348', '269375', '271545', '271546', '271594', '271595', '271607', '271608', '271611', '271625', '318763', '319338', '319364', '319377', '319381', '319382']
    nosy_count = 5.0
    nosy_names = ['taleinat', 'ned.deily', 'r.david.murray', 'Claudiu Saftoiu', 'CryptidVulpes']
    pr_nums = ['7583', '7664', '7665']
    priority = 'high'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue27397'
    versions = ['Python 3.6', 'Python 3.7', 'Python 3.8']

    Metadata

    Metadata

    Assignees

    Labels

    3.7 (EOL)end of life3.8 (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