connection: Check object types in message parameters
This commit is contained in:
parent
f86338d611
commit
3f1063f92a
|
@ -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;
|
||||
}
|
||||
|
||||
p++;
|
||||
break;
|
||||
case 'n':
|
||||
|
|
Loading…
Reference in New Issue
Block a user