Skip to content

Commit

Permalink
do not forget closing file if too large
Browse files Browse the repository at this point in the history
  • Loading branch information
tahina-pro committed Nov 29, 2023
1 parent 01cc9c4 commit ede0b90
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/3d/Z3TestGen.fst
Original file line number Diff line number Diff line change
Expand Up @@ -1689,6 +1689,7 @@ int main(int argc, char** argv) {
}
off_t len = statbuf.st_size;
if (len > 4294967295) {
close(testfile);
printf(\"File is too large. EverParse/3D only supports data up to 4 GB\");
return 3;
}
Expand Down

0 comments on commit ede0b90

Please sign in to comment.