Skip to content

HostDBHash::set_host(): null termination (and lifetime) of string parameter ambiguous. #8648

Description

@ywkaras

The prototype,

HostDBHash::set_host(const char *name, int len)
, implies the string is not null terminated. But it seems to assume the string is null terminated. in line 180.

We also seem to be sending a pointer to a string into deep call stacks and multiple source files, with no clear mechanism to guarantee that it doesn't go stale.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions