Re: [PATCH wayland v2 1/3] tests: Demarshalling of very long array/string lengths.

2018-08-22 Thread Pekka Paalanen
On Tue, 21 Aug 2018 10:47:29 +0200 Michal Srb wrote: > 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 i

[PATCH wayland v2 1/3] tests: Demarshalling of very long array/string lengths.

2018-08-21 Thread Michal Srb
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 give