From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:39811) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTuk0-00061A-0R for qemu-devel@nongnu.org; Thu, 01 Nov 2012 09:23:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TTujy-0002xv-Ob for qemu-devel@nongnu.org; Thu, 01 Nov 2012 09:23:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:5118) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTujy-0002xi-Fy for qemu-devel@nongnu.org; Thu, 01 Nov 2012 09:23:22 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id qA1DNLvM015814 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 1 Nov 2012 09:23:21 -0400 Message-ID: <509277C7.6000301@redhat.com> Date: Thu, 01 Nov 2012 14:23:19 +0100 From: Gerd Hoffmann MIME-Version: 1.0 References: <1350647521-1704-1-git-send-email-alevy@redhat.com> In-Reply-To: <1350647521-1704-1-git-send-email-alevy@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] ui/spice: support websockets ports List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alon Levy Cc: qemu-devel@nongnu.org On 10/19/12 13:52, Alon Levy wrote: > Signed-off-by: Alon Levy > --- > Spice package is not yet available, I assumed it will be the next version, 0.12.1, for the added API spice_server_set_ws_ports. Patches are on spice-devel and git is at http://cgit.freedesktop.org/~alon/spice master branch (db5817a059d640fb4ca21740e1362fc6c3e98765) What is the state of this? Committed to spice-server meanwhile? > --- a/roms/openbios > +++ b/roms/openbios > @@ -1 +1 @@ > -Subproject commit f095c858136896d236931357b8d597f407286f71 > +Subproject commit d1d2787f87167edf487a60e61b9168514d5a7434 Hmm? > diff --git a/ui/spice-core.c b/ui/spice-core.c > index 5147365..190b14d 100644 > --- a/ui/spice-core.c > +++ b/ui/spice-core.c > @@ -542,6 +542,14 @@ static void vm_change_state_handler(void *opaque, int running, > } > } > > +static void validate_port(int port, const char *port_name) > +{ > + if (port < 0 || port > 65535) { > + error_report("spice %s is out of range", port_name); > + exit(1); > + } > +} That should go as separate patch. cheers. Gerd