Update Rust crate glib to 0.20.0 [SECURITY] #242
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.16.9
->0.20.0
GitHub Vulnerability Alerts
GHSA-wrw7-89jp-8q8g
The
VariantStrIter::impl_get
function (called internally by implementations of theIterator
andDoubleEndedIterator
traits for this type) was unsound, resulting in undefined behaviour.An immutable reference
&p
to a*mut libc::c_char
pointer initialized toNULL
was passed as an argument to a C function that that mutates the pointer behind&p
in-place (i.e. as an out-argument), which was unsound. After changes in recent versions of the Rust compiler, these unsound writes through&p
now seem to be completely disregarded when building theglib
crate with optimizations.This subsequently caused all calls of
VariantStrIter::impl_get
to violate the safety requirements of thestd::ffi::CStr::from_ptr
function - which requires its argument to be a valid pointer to a C-style string - resulting in crashes due toNULL
pointer dereferences.This was fixed by passing the out-argument pointer explitly as
&mut p
instead of&p
.This issue has been present since this code was initially added in
glib
v0.15.0. The mismatch in mutability was likely missed (and not raised as an error by the compiler) because the C function wrapped byVariantStrIter::impl_get
is variadic (glib_sys::g_variant_get_child
), and the pointer in question is one of the variadic arguments.Release Notes
gtk-rs/gtk-rs-core (glib)
v0.20.0
Compare Source
v0.19.9
Compare Source
v0.19.8
Compare Source
v0.19.7
Compare Source
v0.19.6
Compare Source
v0.19.5
Compare Source
v0.19.4
Compare Source
v0.19.3
Compare Source
v0.19.2
Compare Source
What's Changed
Full Changelog: gtk-rs/gtk-rs-core@0.19.1...0.19.2
v0.19.0
Compare Source
What's Changed
glib::derived_properties
by @Hofer-Julian in https://github.com/gtk-rs/gtk-rs-core/pull/1143PollableInputStream
/PollableOutputStream
ret… by @sdroege in https://github.com/gtk-rs/gtk-rs-core/pull/1159resolver = "2"
for the workspace by @sdroege in https://github.com/gtk-rs/gtk-rs-core/pull/1162g_unichar
APIs by @RealKC in https://github.com/gtk-rs/gtk-rs-core/pull/1146#[doc(hidden)]
fromonce_cell
andbitflags
re-export by @RealKC in https://github.com/gtk-rs/gtk-rs-core/pull/1177as_str()
andDeref<Target=&str>
by @cgwalters in https://github.com/gtk-rs/gtk-rs-core/pull/1181spawn_future
andspawn_future_local
convenience functions by @Hofer-Julian in https://github.com/gtk-rs/gtk-rs-core/pull/1201MainContext::channel()
by @sdroege in https://github.com/gtk-rs/gtk-rs-core/pull/1216Cargo.lock
to git tracking by @GuillaumeGomez in https://github.com/gtk-rs/gtk-rs-core/pull/1221BoxedAnyObject
methods astrack_caller
by @RealKC in https://github.com/gtk-rs/gtk-rs-core/pull/1279proc_macro_error
with explicit propagation ofsyn::Result
by @andy128k in https://github.com/gtk-rs/gtk-rs-core/pull/1288once_cell
usage with std::sync::OnceLock by @andy128k in https://github.com/gtk-rs/gtk-rs-core/pull/1289New Contributors
Full Changelog: gtk-rs/gtk-rs-core@0.18.0...0.19.0
v0.18.5
Compare Source
v0.18.4
Compare Source
v0.18.3
Compare Source
v0.18.2
Compare Source
What's Changed
v0.18.1
Compare Source
What's Changed
v0.18.0
Compare Source
What's Changed
IntoStrV
impls by @sdroege in https://github.com/gtk-rs/gtk-rs-core/pull/977WeakRef
andSendWeakRef
useable with theProperties
derive macro by @RealKC in https://github.com/gtk-rs/gtk-rs-core/pull/985NULL
tog_list_store_find_with_equal_func_full()
by @sdroege in https://github.com/gtk-rs/gtk-rs-core/pull/1015IntoGStr
impl forString
by simply appending a NUL-byte by @sdroege in https://github.com/gtk-rs/gtk-rs-core/pull/1016as_ptr
implementation by @mbiggio in https://github.com/gtk-rs/gtk-rs-core/pull/1026IntoGStr
forString
when capacity allows by @jf2048 in https://github.com/gtk-rs/gtk-rs-core/pull/1034IntoStrV
slice by @sdroege in https://github.com/gtk-rs/gtk-rs-core/pull/1037Path
/PathBuf
inglib::Value
s by @sdroege in https://github.com/gtk-rs/gtk-rs-core/pull/1071Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.