Pass output buffer size to addrToString and detect overflow. Handle addrToString error in configure_urlbase.