Skip to content

Commit

Permalink
solve bug extracting mz files. Remove duplicated function call (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
mscasso-scanoss authored Dec 19, 2023
1 parent d2cfdef commit 482d5c3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion inc/minr.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include <string.h>

/* Definitions */
#define MINR_VERSION "2.5.16"
#define MINR_VERSION "2.5.17"
#define FILE_FILES 256
#define MAX_ARG_LEN 1024
#define MIN_FILE_REC_LEN 70
Expand Down
3 changes: 2 additions & 1 deletion src/mz_deflate.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ bool mz_extract_handler(struct mz_job *job)
}

free(actual);
free(job->mz);
//free(job->mz);
free(job->data);

return true;
Expand All @@ -326,4 +326,5 @@ void mz_extract(struct mz_job *job)

/* Launch extraction */
mz_parse(job, mz_extract_handler);
free(job->mz);
}
3 changes: 0 additions & 3 deletions src/wfp.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@ void extract_wfp(uint8_t *md5, char *src, uint32_t length, bool check_mz)
/* Check if data is too square */
if (too_much_squareness(src)) return;

/* File discrimination check: Unwanted header? */
if (unwanted_header(src)) return;

/* File discrimination check: Binary? */
uint32_t src_ln = strlen(src);

Expand Down

0 comments on commit 482d5c3

Please sign in to comment.