Skip to content

Dereferencing the pointer 'parser_token->metadata' with a NULL value #131762

@rialbat

Description

@rialbat

After having been assigned to a NULL value

parser_token->metadata = NULL;

pointer 'parser_token->metadata' is passed as 3rd parameter in call to function 'Py_DECREF':
Py_DECREF(parser_token->metadata);

where it is dereferenced.

Metadata for a new_token can be set using fstrings, such as {1!=2=}.
If _PyArena_AddPyObject returns -1, we will get a read access violation exception.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions