WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Announce: rsysklogd

To: Michael Holzt <kju-xen@xxxxxxxx>
Subject: Re: [Xen-users] Announce: rsysklogd
From: aq <aquynh@xxxxxxxxx>
Date: Mon, 23 May 2005 11:39:14 +0900
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 23 May 2005 02:38:38 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=sur50NGgB3a7/jkZm06KLBYH5UYSTGHVgbBNJRnxBfcvJIA9fqwPpt+cJ2D1uyWsQUlGy8VCp//oUePVYVvL6HqNK+8pGwI4ix0e5lj0lrW6LgvrVbTrFGHNVA+lF+QeutBDrxVdgaNHGJfxq0Tgn/LTzCOg7iBetVWtMPsNQ8c=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20050522220447.GA6329@xxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <20050522173828.GB30713@xxxxxxxx> <20050522175847.E3802170097@xxxxxxxxxxxxxxxxxxxx> <20050522220447.GA6329@xxxxxxxx>
Reply-to: aq <aquynh@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On 5/23/05, Michael Holzt <kju-xen@xxxxxxxx> wrote:
> > Sounds great. Is there a debian-package availabel?
> 
> Here you are: http://kju.de/projekte/rsysklogd/rsysklogd_0.1-1_i386.deb
> 
> 
> Regards
> Michael

Micheal, nice tool. but after quick glancing at your code, i spot a
buffer overflow bug. please fix it.

see below excerpt, with notes next to buggy lines:


^^^
  void do_klog_line(unsigned char *msg)
  {
    unsigned char     buffer[BUFSIZE],
                         *gtptr;
    int           len;
  
    /* copy the message */
    len = strlen(msg);                              <== this should be
len=sizeof(buffer) ?
    memcpy(buffer, msg, len);               <==== BoF here. 
^^^
  
other note: the code mixed with tab and spaces for indentation. could
you use either, but not too at the same time?

keep up the good job ;-)

regards,
aq

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>