Fixed buffer overflow
authorJason Self <j@jxself.org>
Mon, 11 Aug 2014 16:32:05 +0000 (09:32 -0700)
committerJason Self <j@jxself.org>
Mon, 11 Aug 2014 16:32:05 +0000 (09:32 -0700)
skein1024.c
skein256.c
skein512.c

index be7abb6d9de10330a9bcf251d128a755eb5eacea..821c04cb51ba33d57cfe2a6fbc707ae847969575 100644 (file)
@@ -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
index 12313362d43d51bc5baf678235ff4aff92635dcd..6026c13e456fcd5678ca14bea5f77ece053e6522 100644 (file)
@@ -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
index a0afbdb32c019b3d8d11b660b6802a9f947e2c6a..7e0a18ca0dd7ec8474a8b287ad17acbca26ff16b 100644 (file)
@@ -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