Skip to content

Commit

Permalink
load_files() problem with memory fix (VirusTotal#1518)
Browse files Browse the repository at this point in the history
  • Loading branch information
regeciovad authored Jun 18, 2021
1 parent 743e74f commit d3f4e63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libyara/arena.c
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ int yr_arena_load_stream(YR_STREAM* stream, YR_ARENA** arena)

YR_ARENA* new_arena;

FAIL_ON_ERROR(yr_arena_create(hdr.num_buffers, 1048576, &new_arena))
FAIL_ON_ERROR(yr_arena_create(hdr.num_buffers, 10485, &new_arena))

for (int i = 0; i < hdr.num_buffers; ++i)
{
Expand Down

0 comments on commit d3f4e63

Please sign in to comment.