Skip to content
Snippets Groups Projects
Commit 9a1a8d3b authored by Hashim Sharif's avatar Hashim Sharif
Browse files

Fixing remaining overflow bug

parent d92a1dd6
No related branches found
No related tags found
No related merge requests found
......@@ -336,7 +336,7 @@ struct Tensor* readInputBatch(const char* file_name, int data_type,
long int num_elems = dim1_size * dim2_size * dim3_size * dim4_size;
long int size_in_bytes = type_size * dim1_size * dim2_size * dim3_size * dim4_size;
float* tensor_data = (float*) malloc(sizeof(float) * num_elems);
int file_header_size = type_size * start * dim2_size * dim3_size * dim4_size;
long int file_header_size = type_size * start * dim2_size * dim3_size * dim4_size;
FILE* file = fopen(file_name, "rb");
if(file == NULL){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment