trafficserver
trafficserver copied to clipboard
HostDBHash::set_host(): null termination (and lifetime) of string parameter ambiguous.
The prototype, https://github.com/apache/trafficserver/blob/bfd5265fd21b45c5fff0affdf8a3b88330d8181a/iocore/hostdb/HostDB.cc#L172 , 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.
This issue has been automatically marked as stale because it has not had recent activity. Marking it stale to flag it for further consideration by the community.
This issue has been automatically marked as stale because it has not had recent activity. Marking it stale to flag it for further consideration by the community.