From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43253) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYEBR-0007Cj-Gi for qemu-devel@nongnu.org; Mon, 30 Jan 2017 10:47:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cYEBO-0001Ni-ES for qemu-devel@nongnu.org; Mon, 30 Jan 2017 10:47:57 -0500 Received: from mx1.redhat.com ([209.132.183.28]:46878) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cYEBO-0001NV-8E for qemu-devel@nongnu.org; Mon, 30 Jan 2017 10:47:54 -0500 Date: Mon, 30 Jan 2017 15:47:49 +0000 From: "Daniel P. Berrange" Message-ID: <20170130154749.GJ27325@redhat.com> Reply-To: "Daniel P. Berrange" References: <1485782396-22341-1-git-send-email-den@openvz.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1485782396-22341-1-git-send-email-den@openvz.org> Subject: Re: [Qemu-devel] [PATCH 1/1] io: ignore case in WebSocket HTTP header #PSBM-57554 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Denis V. Lunev" Cc: qemu-devel@nongnu.org, Anton Nefedov What is #PSBM-57554 referring to ? Is that some custom bug tracker you have ? I'm going to drop that unless its something we need to keep On Mon, Jan 30, 2017 at 04:19:56PM +0300, Denis V. Lunev wrote: > From: Anton Nefedov > > According to RFC7230 Section 3.2, header field name is case-insensitive. > > The haystack string length is limited by 4096 bytes by > qio_channel_websock_handshake_read(). > > Further, handshake_process() dups and NULL-terminates the string > so it is safe to call non length-limited functions like strcasestr(). > > Signed-off-by: Anton Nefedov > Signed-off-by: Denis V. Lunev > CC: Daniel P. Berrange > --- > io/channel-websock.c | 25 ++++++++++++++----------- > 1 file changed, 14 insertions(+), 11 deletions(-) Reviewed-by: Daniel P. Berrange will add this to my io queue Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://entangle-photo.org -o- http://search.cpan.org/~danberr/ :|