bug-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bad buffer size


From: Mark Burgess
Subject: Re: Bad buffer size
Date: Fri, 28 Oct 2005 07:49:14 +0200

Thanks. What a bizarre bit of code. (Not mine)

M

On Thu, 2005-10-27 at 21:00 -0400, address@hidden wrote:
> This patch courtesy Nikolay Sturm <address@hidden> for src/cfrun.c 
> against 2.1.16:
> 
> @@ -603,7 +604,7 @@ while (!feof(fp))
>   
>     if (strncmp(line,"hostnamekeys",6) == 0)
>        {
> -      char buf[16];
> +      char buf[296];
>        buf[0] = '\0';
>        sscanf(line,"hostnamekeys = %295[^# \n]",buf);
>        Verbose("Hostname keys\n");
> 
> 
> 
> _______________________________________________
> Bug-cfengine mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/bug-cfengine





reply via email to

[Prev in Thread] Current Thread [Next in Thread]