connection: Handle non-nullable strings in wl_connection_demarshal
authorFergus Dall <sidereal@google.com>
Tue, 22 Jun 2021 09:31:26 +0000 (19:31 +1000)
committerFergus Dall <sidereal@google.com>
Tue, 22 Jun 2021 10:15:39 +0000 (20:15 +1000)
commitccc9612e823601f9bb7675bf2b029fd6eed6ed7b
tree41155da2455aac4c9ca8a37f2853b56af6aaf244
parent4f53613e70cfc8eb23a91d289c79dc67f1114088
connection: Handle non-nullable strings in wl_connection_demarshal

Currently a null string passed into a non-nullable argument of a message
will decode succesfully, probably resulting in the handler function
crashing. Instead treat it the same way we do non-nullable objects and ids.

Signed-off-by: Fergus Dall <sidereal@google.com>
src/connection.c
tests/connection-test.c