mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-04-02 07:15:53 -04:00
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>
This commit is contained in:
parent
7cdc20cee6
commit
13b05c9ed1
4 changed files with 4 additions and 17 deletions
|
|
@ -64,8 +64,7 @@ TEST(message_count_arrays)
|
|||
{ "multiple", "aaiufaasonhaa", NULL },
|
||||
{ "leading_version", "2aaiufaasonhaa", NULL },
|
||||
{ "among_nullables", "iufsa?oa?nah", NULL },
|
||||
{ "nullable", "?aiufs?a?onh?a", NULL },
|
||||
{ "all_mixed", "2?aiufas?oa?na", NULL },
|
||||
{ "all_mixed", "2aiufas?oa?na", NULL },
|
||||
};
|
||||
const struct {
|
||||
const struct wl_message *message;
|
||||
|
|
@ -81,8 +80,7 @@ TEST(message_count_arrays)
|
|||
{ &fake_messages[5], 6 },
|
||||
{ &fake_messages[6], 6 },
|
||||
{ &fake_messages[7], 3 },
|
||||
{ &fake_messages[8], 3 },
|
||||
{ &fake_messages[9], 4 },
|
||||
{ &fake_messages[8], 4 },
|
||||
};
|
||||
|
||||
for (i = 0; i < ARRAY_LENGTH(messages); ++i) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue