Skip to content

Commit

Permalink
limit data we read from file to avoid DoS via large files
Browse files Browse the repository at this point in the history
  • Loading branch information
hannob committed Jun 10, 2020
1 parent c11f350 commit 18bbf20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion freewvs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ for fdir in opts.dirs:
file = open(mfile, errors='replace')
except OSError:
continue
filestr = file.read()
filestr = file.read(200000)
file.close()

if (('extra_match' in det
Expand Down

0 comments on commit 18bbf20

Please sign in to comment.