mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-02 05:43:07 +02:00
Avoid overrunning stack at the end of the varargs.
This commit is contained in:
parent
5c5920d968
commit
633e9e0bcb
@ -2872,9 +2872,10 @@ g_markup_collect_attributes (const gchar *element_name,
|
|||||||
g_assert_not_reached ();
|
g_assert_not_reached ();
|
||||||
}
|
}
|
||||||
|
|
||||||
type = va_arg (ap, GMarkupCollectType);
|
|
||||||
attr = va_arg (ap, const char *);
|
|
||||||
written++;
|
written++;
|
||||||
|
type = va_arg (ap, GMarkupCollectType);
|
||||||
|
if (type != G_MARKUP_COLLECT_INVALID)
|
||||||
|
attr = va_arg (ap, const char *);
|
||||||
}
|
}
|
||||||
va_end (ap);
|
va_end (ap);
|
||||||
|
|
||||||
@ -2950,7 +2951,8 @@ failure:
|
|||||||
}
|
}
|
||||||
|
|
||||||
type = va_arg (ap, GMarkupCollectType);
|
type = va_arg (ap, GMarkupCollectType);
|
||||||
attr = va_arg (ap, const char *);
|
if (type != G_MARKUP_COLLECT_INVALID)
|
||||||
|
attr = va_arg (ap, const char *);
|
||||||
}
|
}
|
||||||
va_end (ap);
|
va_end (ap);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user