mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-25 00:09:02 +00:00
Fix memory oob problem in test conversions (#1513)
* Fix memory oob problem in test conversions Allocate memory for argc arguments instead of argc - 1. * Fix formatting issue.
This commit is contained in:
@@ -343,7 +343,7 @@ int main (int argc, const char **argv )
|
|||||||
static int ParseArgs( int argc, const char **argv )
|
static int ParseArgs( int argc, const char **argv )
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
argList = (const char **)calloc( argc - 1, sizeof( char*) );
|
argList = (const char **)calloc(argc, sizeof(char *));
|
||||||
argCount = 0;
|
argCount = 0;
|
||||||
|
|
||||||
if( NULL == argList && argc > 1 )
|
if( NULL == argList && argc > 1 )
|
||||||
|
|||||||
Reference in New Issue
Block a user