From: Ian Jackson Subject: Re: [PATCH 13/16] libelf: use C99 bool for booleans Date: Thu, 6 Jun 2013 15:46:46 +0100 Message-ID: <20912.41174.179742.739177@mariner.uk.xensource.com> References: <1370368803-9436-1-git-send-email-ian.jackson@eu.citrix.com> <1370368803-9436-14-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: George Dunlap Cc: Andrew Cooper , "xen-devel@lists.xensource.com" , mattjd@gmail.com, security@xen.org List-Id: xen-devel@lists.xenproject.org George Dunlap writes ("Re: [Xen-devel] [PATCH 13/16] libelf: use C99 bool for booleans"): > On Tue, Jun 4, 2013 at 7:00 PM, Ian Jackson wrote: > > We want to remove uses of "int" because signed integers have > > undesirable undefined behaviours on overflow. Malicious compilers can > > turn apparently-correct code into code with security vulnerabilities > > etc. > > So the main point here is to avoid false positives, as opposed to > actually fixing any potential bugs? I.e., we can say, "There are > absolutely no int's anywhere in the code" and can stop worrying about > int-related bugs? Exactly. > Or do you think there may be actual overflow conditions that might > happen when using an int as a boolean? No. > All the changes look fine to me: > > Acked-by: George Dunlap Thanks, Ian.