1 result · Clear filters · Feed
-
Medium —
Unsoundness in `Iterator` and `DoubleEndedIterator` impls for `glib::VariantStrIter`
The `VariantStrIter::impl_get` function (called internally by implementations of the `Iterator` and `DoubleEndedIterator` traits for this type) was unsound, resulting in undefined behaviour. An immutable reference `&p` to a `*mut libc::c_char` pointer initial…