Skip to content

[http.c][parse_message_header] Testing 'field' value after using it #3

@emirica

Description

@emirica

At http.c:282 you allocate memory for field->name and then you check if !field. Maybe this should have been:
if (!field->name)

or it is an error and you use field before checking it and if NULL you can get a segfault.

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