Test for null buffer in CString.len()/.iter() and fail#11942
Test for null buffer in CString.len()/.iter() and fail#11942lilyball wants to merge 1 commit intorust-lang:masterfrom
Conversation
|
It appears that dealing with null is a little inconsistent. Methods like I would expect these all to do the same thing, and I would personally expect that course of action to be failure. |
|
@alexcrichton Failure on
Incidentally, I think Hmm. |
|
I've rewritten this to fail on null buffer. I'm also added the same failure to |
Also change .as_str() to fail on null buffer.
Also change .as_str() to fail on null buffer.