mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 07:56:17 +01:00
GDBusMessage: Properly check error and bail if set
Otherwise we may set a GError on top of it. Signed-off-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
parent
8a105625b0
commit
57dff1e060
@ -970,6 +970,8 @@ parse_value_from_blob (GMemoryInputStream *mis,
|
||||
if (!ensure_input_padding (mis, 4, &local_error))
|
||||
goto fail;
|
||||
array_len = g_data_input_stream_read_uint32 (dis, NULL, &local_error);
|
||||
if (local_error != NULL)
|
||||
goto fail;
|
||||
|
||||
if (array_len > (2<<26))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user