Problem 3 (link) is about dangling pointers. In particular it uses the CString.as_ptr() method to get a pointer to some temporary CString.
The solution section should talk about what dangling pointers are and how we ended up in this situation. You may want to use CString.as_ptr() is incredibly unsafe as a reference.
Problem 3 (link) is about dangling pointers. In particular it uses the
CString.as_ptr()
method to get a pointer to some temporaryCString
.The solution section should talk about what dangling pointers are and how we ended up in this situation. You may want to use CString.as_ptr() is incredibly unsafe as a reference.