Skip to content

newPool() allocates memory without checking for NULL #96

@murrayju

Description

@murrayju

In antlr3collections.c, the function newPool() is calling both realloc and malloc without properly handling the out of memory (NULL return) case.

This ultimately leads to my application crashing in antlr3commontoken.c, in newPoolToken() with an access violation caused by a NULL pointer dereference.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions