Skip to content

Commit

Permalink
solve bug with buffer size (#48)
Browse files Browse the repository at this point in the history
Co-authored-by: scanossmining <info@scanoss.com>
  • Loading branch information
mscasso-scanoss and scanoss-cs authored Nov 22, 2023
1 parent d279b00 commit d437b8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wfp.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ void extract_wfp(uint8_t *md5, char *src, uint32_t length, bool check_mz)

uint8_t *grams = calloc(mem_alloc,1);
uint32_t *windows = calloc (mem_alloc*4,1);
uint8_t *buffer = malloc(mem_alloc * 256);
uint8_t *buffer = malloc(BUFFER_SIZE * 256);
uint32_t *hashes = malloc(mem_alloc);
uint32_t *lines = malloc(mem_alloc);

Expand Down

0 comments on commit d437b8b

Please sign in to comment.