diff options
| author | Kevin Ballard <kevin@sb.org> | 2013-08-14 19:19:29 -0700 |
|---|---|---|
| committer | Kevin Ballard <kevin@sb.org> | 2013-08-15 01:32:10 -0700 |
| commit | 48265b779fabf865a4b05f000ea1575c90e3cd73 (patch) | |
| tree | 70e4fc83ed145142c5f7b53440e2ff7f9181ad29 /src/rustllvm/PassWrapper.cpp | |
| parent | 1e4f13f95fc629bcee2ad9a766d9af7c7b2e18f7 (diff) | |
| download | rust-48265b779fabf865a4b05f000ea1575c90e3cd73.tar.gz rust-48265b779fabf865a4b05f000ea1575c90e3cd73.zip | |
Check for interior nulls in .to_c_str()
Previous dicussions about CString suggested that interior nulls should throw an error. This was never implemented. Add this now, using a condition (named null_byte) to allow for recovery. Add method .to_c_str_unchecked() that skips this check.
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
