qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2 6/6] io: Reply to ping frames


From: Brandon Carpenter
Subject: Re: [Qemu-devel] [PATCH v2 6/6] io: Reply to ping frames
Date: Tue, 12 Sep 2017 08:29:21 -0700

On Tue, Sep 12, 2017 at 2:01 AM, Daniel P. Berrange <address@hidden> wrote:
The problem is in the qio_channel_websock_read_wire method we refuse to read more than 4k into encinput. So if the ping payload is greater than 4k this will just loop forever.

The RFC limits the payload length of control messages to 126 bytes, , limiting the total message size to 132 bytes. This is enforced in qio_channel_websock_decode_header(). If anything larger is sent in a control message, including pings, the connection is immediately closed.
--
Brandon Carpenter | Software Engineer
Cypherpath, Inc.
400 Columbia Point Drive Ste 101 | Richland, Washington USA
Office: (650) 713-3060


--


CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain proprietary, confidential or privileged information or otherwise be protected by law. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please notify the sender and destroy all copies and the original message.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]