A flaw exists when constructing a masked WebSocket client frame for very large outgoing payloads. Size values passed to GByteArray allocation APIs may be truncated, while the masking routine continues to use the full length, resulting in a heap buffer overflow. A heap buffer overflow occurs when a program writes more data to a heap-allocated memory block than it can hold, potentially leading to crashes or arbitrary code execution.