From: Ian Jackson Subject: Re: [PATCH 14/16] libelf: use only unsigned integers Date: Fri, 7 Jun 2013 15:35:53 +0100 Message-ID: <20913.61385.299688.551733@mariner.uk.xensource.com> References: <1370368803-9436-1-git-send-email-ian.jackson@eu.citrix.com> <1370368803-9436-15-git-send-email-ian.jackson@eu.citrix.com> <20912.53635.999895.832725@mariner.uk.xensource.com> <51B1A47102000078000DC1F3@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <51B1A47102000078000DC1F3@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: George Dunlap , AndrewCooper , mattjd@gmail.com, "xen-devel@lists.xensource.com" , security@xen.org List-Id: xen-devel@lists.xenproject.org Jan Beulich writes ("Re: [Xen-devel] [PATCH 14/16] libelf: use only unsigned integers"): > On 06.06.13 at 20:14, Ian Jackson wrote: > > Yes, we can be sure that sizeof(int)==sizeof(unsigned), forever and > > always. If they weren't the right size as the things in the elf then > > the code was broken before :-). > > > > I'm changing this so you can grep for \bint\b afterwards and see a > > very small number of hits left. > > But there's a point in what George says nevertheless: What is this > sizeof(int) (now sizeof(unsigned)) referring to anyway? Yes, I agree that there is a point. However what we are trying to do here is prepare a security patch. Fixes to braindamage of this kind should not appear in security patches because security patches shouldn't change anything they don't need to. Anything which is broken before the security patch can safely remain broken afterwards. Ian.