The `bit TV to utf8()` function in `src/bits.c` can write to the caller-provided `src` buffer despite accepting constant input. When an `iconv()` error other than `E2BIG` occurs, the function frees its output buffer and passes the original input alias to the `bit u expand()` function, which modifies Unicode and multibyte escape sequences in place. If the input is a string literal, read-only mapping, or other immutable buffer, this operation can lead to a segmentation fault and denial of service. Additionally, mutable input owned by the caller may be unexpectedly modified. This issue impacts applications that expose the conversion API to untrusted input.