Skip to content

Python/coreconfig.c: Fix _Py_wstrlist_copy() #78673

Closed

Description

@izbyshev
mannequin
BPO 34492
Nosy @vstinner, @berkerpeksag, @serhiy-storchaka, @izbyshev
PRs
  • bpo-34492: Python/coreconfig.c: Fix _Py_wstrlist_copy() #8910
  • [3.7] bpo-34492: Modules/main.c: Fix copy_wstrlist() (GH-8910) #8922
  • 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-08-25.16:47:27.087>
    created_at = <Date 2018-08-24.22:37:17.803>
    labels = ['interpreter-core', '3.8', 'type-bug', '3.7']
    title = 'Python/coreconfig.c: Fix _Py_wstrlist_copy()'
    updated_at = <Date 2018-08-25.16:47:27.086>
    user = 'https://github.com/izbyshev'

    bugs.python.org fields:

    activity = <Date 2018-08-25.16:47:27.086>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-08-25.16:47:27.087>
    closer = 'vstinner'
    components = ['Interpreter Core']
    creation = <Date 2018-08-24.22:37:17.803>
    creator = 'izbyshev'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 34492
    keywords = ['patch']
    message_count = 4.0
    messages = ['324021', '324023', '324078', '324079']
    nosy_count = 4.0
    nosy_names = ['vstinner', 'berker.peksag', 'serhiy.storchaka', 'izbyshev']
    pr_nums = ['8910', '8922']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue34492'
    versions = ['Python 3.7', 'Python 3.8']

    Activity

    1. izbyshev commented on Aug 24, 2018

      izbyshevmannequin
      MannequinAuthor

      The return value of PyMem_RawMalloc() is not checked for NULL at

      wchar_t **list_copy = PyMem_RawMalloc(size);
      .

      Reported by Svace static analyzer.

    2. added
      interpreter-core(Objects, Python, Grammar, and Parser dirs)
      type-bugAn unexpected behavior, bug, or error
      on Aug 24, 2018
    3. vstinner commented on Aug 24, 2018

      @vstinner
      Member

      New changeset eb746db by Victor Stinner (Alexey Izbyshev) in branch 'master':
      bpo-34492: Python/coreconfig.c: Fix _Py_wstrlist_copy() (GH-8910)
      eb746db

    4. changed the title [-]Python/coreconfig.c: Missing NULL check in _Py_wstrlist_copy()[/-] [+]Python/coreconfig.c: Fix _Py_wstrlist_copy()[/+] on Aug 25, 2018
    5. vstinner commented on Aug 25, 2018

      @vstinner
      Member

      New changeset 388bd4b by Victor Stinner (Alexey Izbyshev) in branch '3.7':
      [3.7] bpo-34492: Modules/main.c: Fix copy_wstrlist() (GH-8910) (GH-8922)
      388bd4b

    6. vstinner commented on Aug 25, 2018

      @vstinner
      Member

      Thanks Alexey Izbyshev for the bug report and the fix for 3.7 and master branches!

    7. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of life3.8 (EOL)end of lifeinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions