Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

solve bug extracting mz files. Remove duplicated function call #52

Merged
merged 1 commit into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading