Skip to content
Commit 581c6284 authored by Michal Srb's avatar Michal Srb Committed by Derek Foreman
Browse files

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: default avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
Acked-by: default avatarDerek Foreman <derek.foreman.samsung@gmail.com>
parent de307968
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment