mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 15:33:39 +02: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:
@@ -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))
|
||||
{
|
||||
|
Reference in New Issue
Block a user