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

Commit

Permalink
Merge pull request #6681 from EOSIO/trx_uncompress_limit_comment_fix
Browse files Browse the repository at this point in the history
Fix comment on max trx decompressed size
  • Loading branch information
spoonincode authored Jan 29, 2019
2 parents 902ca37 + e4b8695 commit 04ca7f3
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 04ca7f3

Please sign in to comment.