Closed derekstraka closed 8 years ago
Thanks! Was this found by searching crates.io or are you using the library?
I'm using the library in a project. When you get a chance, would you be able to bump the minor version number to 0.2.1, so I can specify that version in my toml? Thanks.
Yeah. My cargo key is at home.
Oh, you don't need a publish.
Tag added too.
Were you going to publish the update on crates.io too?
Oops, yep. Added a task to my list.
The existing use of as_ptr did not guarantee that self was always valid. Depending on the optimizations of LLVM, the memory may have been freed immediately after creation rather than after the completion of the function call. This left the pointee memory in a non-deterministic state causing garbage values to be send to the system calls. Updated the usage of as_ptr to ensure the CString objects remained around through the lifetime of the pointer usage as described in std::ffi::CString as_ptr documentation.