This repository was archived by the owner on Nov 21, 2025. It is now read-only.
Update Rust crate glib to 0.20.0 [SECURITY]#242
Open
renovate[bot] wants to merge 1 commit intodevelopfrom
Open
Update Rust crate glib to 0.20.0 [SECURITY]#242renovate[bot] wants to merge 1 commit intodevelopfrom
renovate[bot] wants to merge 1 commit intodevelopfrom
Conversation
Contributor
Author
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.0GitHub Vulnerability Alerts
GHSA-wrw7-89jp-8q8g
The
VariantStrIter::impl_getfunction (called internally by implementations of theIteratorandDoubleEndedIteratortraits for this type) was unsound, resulting in undefined behaviour.An immutable reference
&pto a*mut libc::c_charpointer initialized toNULLwas passed as an argument to a C function that that mutates the pointer behind&pin-place (i.e. as an out-argument), which was unsound. After changes in recent versions of the Rust compiler, these unsound writes through&pnow seem to be completely disregarded when building theglibcrate with optimizations.This subsequently caused all calls of
VariantStrIter::impl_getto violate the safety requirements of thestd::ffi::CStr::from_ptrfunction - which requires its argument to be a valid pointer to a C-style string - resulting in crashes due toNULLpointer dereferences.This was fixed by passing the out-argument pointer explitly as
&mut pinstead of&p.This issue has been present since this code was initially added in
glibv0.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_getis 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.0Compare Source
v0.19.9Compare Source
v0.19.8Compare Source
v0.19.7Compare Source
v0.19.6Compare Source
v0.19.5Compare Source
v0.19.4Compare Source
v0.19.3Compare Source
v0.19.2Compare Source
What's Changed
Full Changelog: gtk-rs/gtk-rs-core@0.19.1...0.19.2
v0.19.0Compare Source
What's Changed
glib::derived_propertiesby @Hofer-Julian in #1143PollableInputStream/PollableOutputStreamret… by @sdroege in #1159resolver = "2"for the workspace by @sdroege in #1162g_unicharAPIs by @RealKC in #1146#[doc(hidden)]fromonce_cellandbitflagsre-export by @RealKC in #1177as_str()andDeref<Target=&str>by @cgwalters in #1181spawn_futureandspawn_future_localconvenience functions by @Hofer-Julian in #1201MainContext::channel()by @sdroege in #1216Cargo.lockto git tracking by @GuillaumeGomez in #1221BoxedAnyObjectmethods astrack_callerby @RealKC in #1279proc_macro_errorwith explicit propagation ofsyn::Resultby @andy128k in #1288once_cellusage with std::sync::OnceLock by @andy128k in #1289New Contributors
Full Changelog: gtk-rs/gtk-rs-core@0.18.0...0.19.0
v0.18.5Compare Source
v0.18.4Compare Source
v0.18.3Compare Source
v0.18.2Compare Source
What's Changed
v0.18.1Compare Source
What's Changed
v0.18.0Compare Source
What's Changed
IntoStrVimpls by @sdroege in #977WeakRefandSendWeakRefuseable with thePropertiesderive macro by @RealKC in #985NULLtog_list_store_find_with_equal_func_full()by @sdroege in #1015IntoGStrimpl forStringby simply appending a NUL-byte by @sdroege in #1016as_ptrimplementation by @mbiggio in #1026IntoGStrforStringwhen capacity allows by @jf2048 in #1034IntoStrVslice by @sdroege in #1037Path/PathBufinglib::Values by @sdroege in #1071use_derived_propertiesmacro by @yuraiz in #1127--generate-link-to-definitionoption when generating documentation by @GuillaumeGomez in #1131New Contributors
Configuration
📅 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.