sprintf is used to build portal file name from argv[i]:
|
sprintf ( portalfile, "%s%s", inbase, argv[i] ); |
where portalfile is defined as char array of 1024 length:
When you pass argv[i] command line argument with length >= 1024 you overflow portalfile buffer.
Use tier1/strtools.h V_sprintf_safe to prevent buffer overflow.