Secure Programming
Name:
Email:
*Note: Email address will appear as "user domain ext" to prevent harvesting.
Subject:
Message:
 
Re: Are bad developer libraries the problem with M$ software? Nov 19 2002 03:25AM
Frank Knobbe (fknobbe knobbeits com)
On Mon, 2002-11-18 at 17:10, Andrew Griffiths wrote:

> Another thing to use is consistency, for example,
>
> char dst[50];
> strncpy(dst, user_supplied_data, sizeof(dst));
> strncat(dst, sizeof(dst) - strlen(dst) -1, moreuserdata);
>
> This could be exploitable if user_supplied_data is 50 or more...

[ more ]  
 

Privacy Statement
Copyright 2010, SecurityFocus