diff options
| author | Michal Srb <msrb@suse.com> | 2018-08-21 10:47:29 +0200 |
|---|---|---|
| committer | Derek Foreman <derek.foreman.samsung@gmail.com> | 2018-08-24 12:31:02 -0500 |
| commit | 581c62841f2215ee12a8d9af4e4c05d052c6a204 (patch) | |
| tree | b6143ea21506420365b221f73943f6bc0ad56e7f /tests/data/example-code.c | |
| parent | configure.ac: bump to version 1.15.94 for the RC2 release (diff) | |
| download | wayland-581c62841f2215ee12a8d9af4e4c05d052c6a204.tar wayland-581c62841f2215ee12a8d9af4e4c05d052c6a204.tar.gz wayland-581c62841f2215ee12a8d9af4e4c05d052c6a204.tar.bz2 wayland-581c62841f2215ee12a8d9af4e4c05d052c6a204.tar.lz wayland-581c62841f2215ee12a8d9af4e4c05d052c6a204.tar.xz wayland-581c62841f2215ee12a8d9af4e4c05d052c6a204.tar.zst wayland-581c62841f2215ee12a8d9af4e4c05d052c6a204.zip | |
tests: Demarshalling of very long array/string lengths.
Attempting to demarshal message with array or string longer than its
body should return failure. Handling the length correctly is tricky when
it gets to near-UINT32_MAX values. Unexpected overflows can cause
crashes and other security issues.
These tests verify that demarshalling such message gives failure instead
of crash.
v2: Added consts, serialized opcode and size properly, updated style.
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Acked-by: Derek Foreman <derek.foreman.samsung@gmail.com>
Diffstat (limited to 'tests/data/example-code.c')
0 files changed, 0 insertions, 0 deletions
