From: Ian Jackson Subject: Re: [PATCH] qemu/block-vvfat.c: fix warnings with _FORTIFY_SOURCE Date: Wed, 3 Nov 2010 12:50:58 +0000 Message-ID: <19665.23218.700424.328858@mariner.uk.xensource.com> References: <20101102223841.GA3932@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20101102223841.GA3932@aepfle.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Olaf Hering Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Olaf Hering writes ("[Xen-devel] [PATCH] qemu/block-vvfat.c: fix warnings with _FORTIFY_SOURCE"): > In function 'snprintf', > inlined from 'init_directories' at block-vvfat.c:868:10, > inlined from 'vvfat_open' at block-vvfat.c:1065:24: > /usr/include/bits/stdio2.h:65:3: warning: call to __builtin___snprintf_chk will always overflow destination buffer Thanks, I have applied both of these patches to qemu-xen-unstable. However: have you checked whether these problems exist in qemu upstream ? With Anthony's work on upstreaming Xen support in qemu coming along well, we should be thinking about sending fixes like this upstream. When we switch to the upstream-based qemu we won't want to carry a lot of patches like this one. Regards, Ian.