Kaydet (Commit) b15a80f0 authored tarafından Julien Nabet's avatar Julien Nabet

Fix Buffer overrun possible for long command line arguments

Change-Id: I5e66ded25afd08f4e203ce8484001e11e0022fca
üst 45d1b033
......@@ -81,7 +81,7 @@ int main( int argc, char** argv )
for ( int i=1; i<argc; i++)
{
strcpy( aBuf, (const char *)argv[i] );
strncpy( aBuf, (const char *)argv[i], sizeof(aBuf) );
const sal_Int32 nLength (strlen(aBuf));
#ifdef DEBUG
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment