Commit bef47f8d authored by Philip Carns's avatar Philip Carns

short-term fix for buffer overflow, fixes #140


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@866 3b7491f3-a168-0410-bf4b-c445ed680a29
parent 50b3cb6d
......@@ -31,7 +31,7 @@ int process_log(const char *fname, double *io_ratio, int *used_mpio, int *used_p
{
struct darshan_job job;
struct darshan_file cp_file;
char tmp_string[1024];
char tmp_string[4096];
darshan_fd zfile;
int ret;
int f_count;
......
......@@ -189,7 +189,7 @@ int main(int argc, char **argv)
char *outfile_name;
struct darshan_job job;
struct darshan_file cp_file;
char tmp_string[1024];
char tmp_string[4096];
darshan_fd infile;
darshan_fd outfile;
int i;
......
......@@ -34,7 +34,7 @@ int main(int argc, char ** argv)
darshan_fd file1, file2;
struct darshan_job job1, job2;
struct darshan_file cp_file1, cp_file2;
char exe1[1024], exe2[1024];
char exe1[4096], exe2[4096];
int i, ret1,ret2;
if (argc != 3)
......
......@@ -55,7 +55,7 @@ int tree_walk (const char *fpath, const struct stat *sb, int typeflag)
int ret;
int rc;
int nofiles;
char exe[1024];
char exe[4096];
char *base;
char *dash;
char *username;
......
......@@ -193,7 +193,7 @@ int main(int argc, char **argv)
char *filename;
struct darshan_job job;
struct darshan_file cp_file;
char tmp_string[1024];
char tmp_string[4096];
time_t tmp_time = 0;
darshan_fd file;
int i;
......
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