I think this is a bug. This makes the last hidden byte of &str point to potentially invalid memory.