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.