Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Segfault / sentinel #1458

@dirkx

Description

@dirkx

During a congested network - I got reproducable segaults in:

const auto datalast = data[datalen];

it appears that data can be NULL (and datalen = 0). Given that in line

if (datalen > 0)

this is only used when datalen >0 I suggest putting an

 uint8_t datalast;
 if (data && datalen>0)  datalast = data[datalen];

sentinel in.

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