trafficserver icon indicating copy to clipboard operation
trafficserver copied to clipboard

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

Open ywkaras opened this issue 3 years ago • 2 comments

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.

ywkaras avatar Feb 07 '22 20:02 ywkaras

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.

github-actions[bot] avatar Feb 08 '23 02:02 github-actions[bot]

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.

github-actions[bot] avatar Apr 03 '24 15:04 github-actions[bot]