merge: branch 'bg/ip-config-search-fix'

core: fix access to uninitialized memory in NMIPConfig

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2031
This commit is contained in:
Íñigo Huguet
2024-09-10 11:28:58 +00:00

View File

@@ -197,7 +197,7 @@ get_property_ip(GObject *object, guint prop_id, GValue *value, GParamSpec *pspec
if (strv) { if (strv) {
strv = nm_utils_buf_utf8safe_escape_strv( strv = nm_utils_buf_utf8safe_escape_strv(
strv, strv,
-1, len,
NM_UTILS_STR_UTF8_SAFE_FLAG_ESCAPE_CTRL NM_UTILS_STR_UTF8_SAFE_FLAG_ESCAPE_CTRL
| NM_UTILS_STR_UTF8_SAFE_FLAG_ESCAPE_NON_ASCII, | NM_UTILS_STR_UTF8_SAFE_FLAG_ESCAPE_NON_ASCII,
&to_free); &to_free);