Skip to content
This repository has been archived by the owner on Apr 25, 2022. It is now read-only.

Commit

Permalink
algo/pack/lzss: fix buffer overflow (tests only)
Browse files Browse the repository at this point in the history
  • Loading branch information
rr- committed Jan 30, 2016
1 parent 62f0417 commit 09194cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/algo/pack/lzss.cc
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ LzssEncoderState::LzssEncoderState(
dict_size(dict_size),
max_match_size(max_match_size),
empty(dict_size),
text_buf(dict_size + max_match_size),
text_buf(dict_size + max_match_size + 1),
dad(dict_size + 1)
{
children[0].resize(dict_size + 1);
Expand Down

0 comments on commit 09194cb

Please sign in to comment.