Analogous fix to memset and memcpy rewriting. Don't have a test case