Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parser/acceler.c: PyObject_MALLOC return is not checked #40410

Closed
ddorfman mannequin opened this issue Jun 17, 2004 · 2 comments
Closed

Parser/acceler.c: PyObject_MALLOC return is not checked #40410

ddorfman mannequin opened this issue Jun 17, 2004 · 2 comments
Assignees
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs)

Comments

@ddorfman
Copy link
Mannequin

ddorfman mannequin commented Jun 17, 2004

BPO 974633
Nosy @akuchling
Files
  • acceler.diff: Patch to acceler.c
  • 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/akuchling'
    closed_at = <Date 2004-06-29.14:03:35.000>
    created_at = <Date 2004-06-17.10:15:16.000>
    labels = ['interpreter-core']
    title = 'Parser/acceler.c: PyObject_MALLOC return is not checked'
    updated_at = <Date 2004-06-29.14:03:35.000>
    user = 'https://bugs.python.org/ddorfman'

    bugs.python.org fields:

    activity = <Date 2004-06-29.14:03:35.000>
    actor = 'akuchling'
    assignee = 'akuchling'
    closed = True
    closed_date = None
    closer = None
    components = ['Interpreter Core']
    creation = <Date 2004-06-17.10:15:16.000>
    creator = 'ddorfman'
    dependencies = []
    files = ['6038']
    hgrepos = []
    issue_num = 974633
    keywords = ['patch']
    message_count = 2.0
    messages = ['46188', '46189']
    nosy_count = 2.0
    nosy_names = ['akuchling', 'ddorfman']
    pr_nums = []
    priority = 'normal'
    resolution = 'accepted'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue974633'
    versions = ['Python 2.4']

    @ddorfman
    Copy link
    Mannequin Author

    ddorfman mannequin commented Jun 17, 2004

    fixstate in Parser/acceler.c: The first call to PyObject_MALLOC doesn't
    check for it returning NULL. The attached patch does the fprintf/exit
    combo just like another call to malloc later in the function.

    @ddorfman ddorfman mannequin closed this as completed Jun 17, 2004
    @ddorfman ddorfman mannequin assigned akuchling Jun 17, 2004
    @ddorfman ddorfman mannequin added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label Jun 17, 2004
    @ddorfman ddorfman mannequin closed this as completed Jun 17, 2004
    @ddorfman ddorfman mannequin assigned akuchling Jun 17, 2004
    @ddorfman ddorfman mannequin added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label Jun 17, 2004
    @akuchling
    Copy link
    Member

    Logged In: YES
    user_id=11375

    Patch applied to CVS; thanks!

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    interpreter-core (Objects, Python, Grammar, and Parser dirs)
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant