mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-12-10 10:33:42 +01:00
gdbusmessage: Fix check on upper limit of message size
There was a typo in the figure checked against. Add a unit test. Signed-off-by: Philip Withnall <withnall@endlessm.com> https://gitlab.gnome.org/GNOME/glib/issues/1642
This commit is contained in:
@@ -1984,7 +1984,7 @@ g_dbus_message_bytes_needed (guchar *blob,
|
||||
"Unable to determine message blob length - given blob is malformed");
|
||||
}
|
||||
|
||||
if (ret > (2<<27))
|
||||
if (ret > (1<<27))
|
||||
{
|
||||
g_set_error (error,
|
||||
G_IO_ERROR,
|
||||
|
||||
Reference in New Issue
Block a user