Skip to content

datetime: NULL dereference in fromisoformat() on PyUnicode_AsUTF8AndSize() failure #78635

@izbyshev

Description

@izbyshev
mannequin
BPO 34454
Nosy @abalkin, @vstinner, @taleinat, @serhiy-storchaka, @pganssle, @izbyshev, @miss-islington
PRs
  • bpo-34454: datetime: Fix crash on PyUnicode_AsUTF8AndSize() failure #8850
  • bpo-34454: fix crash in .fromisoformat() methods when given inputs with surrogate code points #8859
  • bpo-34454: Fix issue with non-UTF8 separator strings #8862
  • [3.7] bpo-34454: fix .fromisoformat() methods crashing on inputs with surrogate code points (GH-8862) #8877
  • bpo-34482: Add tests for proper handling of non-UTF-8-encodable strin… #8878
  • bpo-34454: Clean up datetime.fromisoformat surrogate handling #8959
  • [3.7] bpo-34454: Clean up datetime.fromisoformat surrogate handling (GH-8959) #10041
  • 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 2018-10-23.07:06:56.538>
    created_at = <Date 2018-08-21.21:38:29.737>
    labels = ['extension-modules', '3.7', '3.8', 'type-crash']
    title = 'datetime: NULL dereference in fromisoformat() on PyUnicode_AsUTF8AndSize() failure'
    updated_at = <Date 2018-10-23.09:19:02.520>
    user = 'https://github.com/izbyshev'

    bugs.python.org fields:

    activity = <Date 2018-10-23.09:19:02.520>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-10-23.07:06:56.538>
    closer = 'taleinat'
    components = ['Extension Modules']
    creation = <Date 2018-08-21.21:38:29.737>
    creator = 'izbyshev'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 34454
    keywords = ['patch']
    message_count = 12.0
    messages = ['323844', '323846', '323849', '323856', '323875', '323954', '323958', '323960', '328263', '328272', '328278', '328294']
    nosy_count = 7.0
    nosy_names = ['belopolsky', 'vstinner', 'taleinat', 'serhiy.storchaka', 'p-ganssle', 'izbyshev', 'miss-islington']
    pr_nums = ['8850', '8859', '8862', '8877', '8878', '8959', '10041']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'crash'
    url = 'https://bugs.python.org/issue34454'
    versions = ['Python 3.7', 'Python 3.8']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of life3.8 (EOL)end of lifeextension-modulesC modules in the Modules dirtype-crashA hard crash of the interpreter, possibly with a core dump

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions