input: resize file to max before reading into it
diff --git a/input.c b/input.c
index 6fc6a46..aab81d3 100644
--- a/input.c
+++ b/input.c
@@ -341,6 +341,7 @@
     }
     snprintf(run->origFileName, sizeof(run->origFileName), "%s", fname);
 
+    input_setSize(run, run->global->mutate.maxFileSz);
     ssize_t fileSz = files_readFileToBufMax(fname, run->dynamicFile, run->global->mutate.maxFileSz);
     if (fileSz < 0) {
         LOG_E("Couldn't read contents of '%s'", fname);
@@ -375,6 +376,7 @@
     }
     LOG_D("Subporcess '%s' finished with success", run->global->exe.externalCommand);
 
+    input_setSize(run, run->global->mutate.maxFileSz);
     ssize_t sz = files_readFromFdSeek(fd, run->dynamicFile, run->global->mutate.maxFileSz, 0);
     if (sz == -1) {
         LOG_E("Couldn't read file from fd=%d", fd);
@@ -406,6 +408,7 @@
     }
     LOG_D("Subporcess '%s' finished with success", run->global->exe.externalCommand);
 
+    input_setSize(run, run->global->mutate.maxFileSz);
     ssize_t sz = files_readFromFdSeek(fd, run->dynamicFile, run->global->mutate.maxFileSz, 0);
     if (sz == -1) {
         LOG_E("Couldn't read file from fd=%d", fd);