From: Jason Self Date: Mon, 11 Aug 2014 16:32:05 +0000 (-0700) Subject: Fixed buffer overflow X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=ffb6dd5017bd51bf125e7164245ac4aba735e238;p=skeinsum.git Fixed buffer overflow --- diff --git a/skein1024.c b/skein1024.c index be7abb6..821c04c 100644 --- a/skein1024.c +++ b/skein1024.c @@ -604,7 +604,7 @@ int main(int argc, char** argv) while(index_files < number_files) { FILE *fp; - char hash[100], file_name[100], file_tmp[100], MsgDigest_tmp[hashbitlen/2]; + char hash[500], file_name[100], file_tmp[100], MsgDigest_tmp[hashbitlen/2]; int NoMatch = 0, NotProper = 0, Computed = 0; strcpy(file_name,list_files[index_files]); //show everything diff --git a/skein256.c b/skein256.c index 1231336..6026c13 100644 --- a/skein256.c +++ b/skein256.c @@ -604,7 +604,7 @@ int main(int argc, char** argv) while(index_files < number_files) { FILE *fp; - char hash[100], file_name[100], file_tmp[100], MsgDigest_tmp[hashbitlen/2]; + char hash[500], file_name[100], file_tmp[100], MsgDigest_tmp[hashbitlen/2]; int NoMatch = 0, NotProper = 0, Computed = 0; strcpy(file_name,list_files[index_files]); //show everything diff --git a/skein512.c b/skein512.c index a0afbdb..7e0a18c 100644 --- a/skein512.c +++ b/skein512.c @@ -604,7 +604,7 @@ int main(int argc, char** argv) while(index_files < number_files) { FILE *fp; - char hash[100], file_name[100], file_tmp[100], MsgDigest_tmp[hashbitlen/2]; + char hash[500], file_name[100], file_tmp[100], MsgDigest_tmp[hashbitlen/2]; int NoMatch = 0, NotProper = 0, Computed = 0; strcpy(file_name,list_files[index_files]); //show everything