From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Christoph Egger" Subject: [PATCH] Fix for figlet Date: Thu, 14 Sep 2006 19:25:55 +0200 Message-ID: <200609141925.56727.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_kCZCF/Ha3pN3NFg" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --Boundary-00=_kCZCF/Ha3pN3NFg Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello! There's a fix for figlet, which prevents accessing a char[] array with a negative index. The patch applies to xen/tools/figlet/figlet.c The fix has been taken from the OpenBSD ports tree: http://www.openbsd.org/cgi-bin/cvsweb/ports/misc/figlet/patches/patch-figlet_c It works for me. --Boundary-00=_kCZCF/Ha3pN3NFg Content-Type: text/x-diff; charset=us-ascii; name=patch-figlet_c Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=patch-figlet_c diff -r 2b8dc69744e3 xen/tools/figlet/figlet.c =2D-- a/xen/tools/figlet/figlet.c Thu Sep 14 07:55:28 2006 +0100 +++ b/xen/tools/figlet/figlet.c Wed Sep 13 19:12:28 2006 +0200 @@ -1448,8 +1448,9 @@ inchr c; } else { for (k=3D0;k=3D 0) + outputline[row][outlinelen-smushamount+k] =3D + smushem(outputline[row][outlinelen-smushamount+k],currchar[row= ][k]); } strcat(outputline[row],currchar[row]+smushamount); } --Boundary-00=_kCZCF/Ha3pN3NFg Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_kCZCF/Ha3pN3NFg--