Skip to content

Possible null pointer dereference due to unchecked malloc #131

@iker-sr

Description

@iker-sr

In file repl.c, function readline, line 31:

line = malloc(len + 1);

Suggested fix:

line = malloc(len + 1);
if (!line) return NULL;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions