Commit 3f1063f9 authored by Benjamin Franzke's avatar Benjamin Franzke 😀 Committed by Kristian Høgsberg
Browse files

connection: Check object types in message parameters

parent f86338d6
......@@ -594,6 +594,16 @@ wl_connection_demarshal(struct wl_connection *connection,
goto err;
if (*object != NULL && message->types[i-2] != NULL &&
(*object)->interface != message->types[i-2]) {
printf("invalid object (%d), type (%s), "
"message %s(%s)\n",
*p, (*object)->interface->name,
message->name, message->signature);
errno = EINVAL;
goto err;
case 'n':
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment