Skip to content

Possible uninitialized variable in Objects/obmalloc.c #81913

Closed

Description

@nanjekyejoannah
BPO 37732
Nosy @vstinner, @nanjekyejoannah, @hansrajdas
PRs
  • bpo-37732 : Fix unintialized pointer warning in Objects/obmalloc.c #15309
  • bpo-37732: Fix GCC warning in _PyObject_Malloc() #15333
  • [3.8] bpo-37732: Fix GCC warning in _PyObject_Malloc() (GH-15333) #15342
  • [3.7] bpo-37732: Fix GCC warning in _PyObject_Malloc() (GH-15333) (GH-15342) #15343
  • 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 2019-08-20.14:30:56.246>
    created_at = <Date 2019-07-31.14:17:16.583>
    labels = ['3.8', 'build', '3.7', '3.9']
    title = 'Possible uninitialized variable in Objects/obmalloc.c'
    updated_at = <Date 2019-08-20.14:30:56.237>
    user = 'https://github.com/nanjekyejoannah'

    bugs.python.org fields:

    activity = <Date 2019-08-20.14:30:56.237>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-08-20.14:30:56.246>
    closer = 'vstinner'
    components = []
    creation = <Date 2019-07-31.14:17:16.583>
    creator = 'nanjekyejoannah'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 37732
    keywords = ['patch']
    message_count = 6.0
    messages = ['348807', '349952', '349998', '350002', '350005', '350006']
    nosy_count = 3.0
    nosy_names = ['vstinner', 'nanjekyejoannah', 'hansrajdas']
    pr_nums = ['15309', '15333', '15342', '15343']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'compile error'
    url = 'https://bugs.python.org/issue37732'
    versions = ['Python 3.7', 'Python 3.8', 'Python 3.9']

    Activity

    1. nanjekyejoannah commented on Jul 31, 2019

      @nanjekyejoannah
      ContributorAuthor

      Here is a compilation warning I got;

      Objects/obmalloc.c: In function ‘_PyObject_Malloc’:
      Objects/obmalloc.c:1646:16: warning: ‘ptr’ may be used uninitialized in this function [-Wmaybe-uninitialized]
      return ptr;
      ^~~
      We can investigate If its not a false alarm.

    2. added
      type-bugAn unexpected behavior, bug, or error
      buildThe build process and cross-build
      and removed
      type-bugAn unexpected behavior, bug, or error
      on Jul 31, 2019
    3. vstinner commented on Aug 19, 2019

      @vstinner
      Member

      bpo-37869 has been marked as a duplicate of this issue.

    4. vstinner commented on Aug 20, 2019

      @vstinner
      Member

      New changeset 18f8dcf by Victor Stinner in branch 'master':
      bpo-37732: Fix GCC warning in _PyObject_Malloc() (GH-15333)
      18f8dcf

    5. vstinner commented on Aug 20, 2019

      @vstinner
      Member

      New changeset 30e5aff by Victor Stinner in branch '3.8':
      bpo-37732: Fix GCC warning in _PyObject_Malloc() (GH-15333) (GH-15342)
      30e5aff

    6. vstinner commented on Aug 20, 2019

      @vstinner
      Member

      New changeset c9a484a by Victor Stinner in branch '3.7':
      bpo-37732: Fix GCC warning in _PyObject_Malloc() (GH-15333) (GH-15342) (GH-15343)
      c9a484a

    7. vstinner commented on Aug 20, 2019

      @vstinner
      Member

      Thanks Joannah for the bug report. I fixed the warning on 3.7, 3.8 and master branches.

    8. 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 life3.9 (EOL)end of lifebuildThe build process and cross-build

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions