Commit 09a17830 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

Potential buffer overflow in PROFILE_CopyEntry.

parent c6a835a6
......@@ -120,9 +120,11 @@ static void PROFILE_CopyEntry( char *buffer, const char *value, int len,
lstrcpynA(env_val, p + 2, min( sizeof(env_val), (int)(p2-p)-1 ));
if ((env_p = getenv( env_val )) != NULL)
{
int buffer_len;
lstrcpynA( buffer, env_p, len );
buffer += strlen( buffer );
len -= strlen( buffer );
buffer_len = strlen( buffer );
buffer += buffer_len;
len -= buffer_len;
}
p = p2 + 1;
}
......
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