Skip to content

Commit

Permalink
Fix comment on max trx decompressed size
Browse files Browse the repository at this point in the history
  • Loading branch information
spoonincode committed Jan 29, 2019
1 parent 822f230 commit e4b8695
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/chain/transaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ static bytes zlib_decompress(const bytes& data) {
bytes out;
bio::filtering_ostream decomp;
decomp.push(bio::zlib_decompressor());
decomp.push(read_limiter<1*1024*1024>()); // limit to 10 megs decompressed for zip bomb protections
decomp.push(read_limiter<1*1024*1024>()); // limit to 1 meg decompressed for zip bomb protections
decomp.push(bio::back_inserter(out));
bio::write(decomp, data.data(), data.size());
bio::close(decomp);
Expand Down

0 comments on commit e4b8695

Please sign in to comment.