Commit 581c6284 authored by Michal Srb's avatar Michal Srb Committed by Derek Foreman

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's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
Acked-by: Derek Foreman's avatarDerek Foreman <derek.foreman.samsung@gmail.com>
parent de307968
Pipeline #3500 passed with stage
in 3 minutes and 5 seconds