You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.
Also get_value() / set_value() must not work with strings at all. The whole point of these functions is to work with plain bytes, potentially invalid UTF8. Have to work on &[u8] / Vec<u8> or similar.
Code in question is
glib/src/auto/key_file.rs
Lines 248 to 263 in 547887f
If there's invalid UTF8,
error
will be set but we will also get the invalid string as return value and are supposed to free it.See for example the tests in GLib: https://gitlab.gnome.org/GNOME/glib/blob/7b774398414f2bf35115603da4e3badd45ffb025/glib/tests/keyfile.c#L558-564
The text was updated successfully, but these errors were encountered: