summaryrefslogtreecommitdiff
path: root/src/cuda-sim
diff options
context:
space:
mode:
authorTor Aamodt <[email protected]>2018-03-31 08:48:47 -0700
committerTor Aamodt <[email protected]>2018-03-31 08:48:47 -0700
commit6d36a6a20f6e0c7082243c0dabe1a6b734c5002b (patch)
treeb1a397b148b65e3284ee1334256a1b1b513c1e8a /src/cuda-sim
parent177d02254ae38b6331b17dd6cd139b570a03c589 (diff)
masked declaration leading to using unitialized buffer as file name, leading to crash
this still fails regressions
Diffstat (limited to 'src/cuda-sim')
-rw-r--r--src/cuda-sim/ptx_loader.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cuda-sim/ptx_loader.cc b/src/cuda-sim/ptx_loader.cc
index 9ff0859..34870c4 100644
--- a/src/cuda-sim/ptx_loader.cc
+++ b/src/cuda-sim/ptx_loader.cc
@@ -410,7 +410,7 @@ void gpgpu_ptxinfo_load_from_string( const char *p_for_info, unsigned source_num
printf(" and have \'cat\' and \'sed\' in your path.\n");
exit(1);
}
- char tempfile_ptxinfo[1024];
+ //char tempfile_ptxinfo[1024];
snprintf(tempfile_ptxinfo,1024,"%sinfo",fname);
char extra_flags[1024];
extra_flags[0]=0;