fix test_fgetc_ungetc
increase logging output, fixes s_0_0.test_safe_heap
handle overflows when relocating heap offsets
handle IPv6 addresses in inet_ntop and inet_pton