Do not allow nullable arrays, which were not correctly implemented
authorIan Douglas Scott <idscott@system76.com>
Tue, 12 Jul 2022 16:12:33 +0000 (09:12 -0700)
committerIan Douglas Scott <idscott@system76.com>
Thu, 14 Jul 2022 15:10:38 +0000 (08:10 -0700)
commit13b05c9ed1570765923a28b277ca385001c2b5c6
treee24e90ad5257b49943c81fb8d5560742a0a8d44b
parent7cdc20cee6cb967c1975896cb60bcc9d1221819a
Do not allow nullable arrays, which were not correctly implemented

Nullable arrays, which are not used anywhere, were marshalled the same
way as an empty non-null array. The demarshalling logic did not
recognize anything as a null array. Given this, it seems better to just
explicitly not support it.

Fixes https://gitlab.freedesktop.org/wayland/wayland/-/issues/306.

Signed-off-by: Ian Douglas Scott <idscott@system76.com>
src/connection.c
src/scanner.c
tests/connection-test.c
tests/message-test.c