added safe_ringbuf_memcpy_info