process: avoid use of non-terminated string

cid #75925
datetime: fix out of bounds access

Time::put expects a buffer that is at least 9 characters long.
cid #75914
socket: fix out of bounds access

sun_path is 108 chars, sizeof(sockaddr_storage) - 20 gives 120.
cid #75871
cid #75763
pointer: fix use of uninitialized pointer

this->ref is used in detach()

cid #75857
socket: ensure buffer is NULL terminated

When strncpy's destination buffer is the same size as its size argument,
the buffer can be left unterminated.

cid #75772
socket: use length value, not address of function

cid #75762
socket: use correct sizeof for memset

cid #75865
socket: fix infinite loop

cid #75787
socket: avoid NULL dereference

cid #75912
socket: avoid NULL dereference

cid #75922
Merge pull request #40 from tmatth/static_analysis_fixes

Static analysis fixes