From: "Jan Beulich" Subject: Re: [PATCH v7 03/15] x86/hvm: restrict port numbers and uint16_t and sizes to unsigned int Date: Thu, 09 Jul 2015 17:31:57 +0100 Message-ID: <559EBE1D020000780008EFD3@mail.emea.novell.com> References: <1436447455-11524-1-git-send-email-paul.durrant@citrix.com> <1436447455-11524-4-git-send-email-paul.durrant@citrix.com> <559EAE31020000780008EED9@mail.emea.novell.com> <9AAE0902D5BC7E449B7C8E4E778ABCD02F4B6F74@AMSPEX01CL02.citrite.net> <559EBB61020000780008EF79@mail.emea.novell.com> <9AAE0902D5BC7E449B7C8E4E778ABCD02F4B708C@AMSPEX01CL02.citrite.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <9AAE0902D5BC7E449B7C8E4E778ABCD02F4B708C@AMSPEX01CL02.citrite.net> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Paul Durrant Cc: "Keir (Xen.org)" , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org >>> On 09.07.15 at 18:23, wrote: > I would have thought that the compiler would point out the overflow if a > caller tried to pass >64k in the port number, That would at best happen when passing literal numbers. Jan