diff options
| author | Louis Burda <quent.burda@gmail.com> | 2021-05-10 15:05:25 +0200 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2021-05-10 15:05:25 +0200 |
| commit | 2a8416eaa85af6348fe34859859a7fb39db2003d (patch) | |
| tree | aa05283f66bf509d75352dbddc8380ab56a27a46 /service/src/stlfile.h | |
| parent | 65a1a51121278e54e40e2a04ae096053d5a3c47d (diff) | |
| download | enowars5-service-stldoctor-2a8416eaa85af6348fe34859859a7fb39db2003d.tar.gz enowars5-service-stldoctor-2a8416eaa85af6348fe34859859a7fb39db2003d.zip | |
save scan info and model, added vuln in load info, small tweaks
create result directory with serialized info struct and model file after successful scan, dont modify the stl file contents during parsing, EOF getc vuln to truncate loaded hash added in load_info
Diffstat (limited to 'service/src/stlfile.h')
| -rw-r--r-- | service/src/stlfile.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/service/src/stlfile.h b/service/src/stlfile.h index e31a8c9..8a52ea9 100644 --- a/service/src/stlfile.h +++ b/service/src/stlfile.h @@ -38,15 +38,14 @@ struct stack { }; struct parseinfo { - char extra[80], hash[MHASHLEN+1]; + char header[80], *hash, *modelname; unsigned int loopcount; float bbmin[3], bbmax[3]; int type, valid; - char *infopath, *stlpath; }; int parse_file(struct parseinfo *info, char *buf, size_t len); -int save_info(struct parseinfo *info, const char *resultdir); +int save_info(struct parseinfo *info, FILE *f); void print_info(struct parseinfo *info); void free_info(struct parseinfo *info); |
