From 0011c101ae95638f236cae369e0136572d919ac3 Mon Sep 17 00:00:00 2001 From: Maksim Dimitrov Date: Thu, 31 Aug 2023 16:46:41 +0300 Subject: [PATCH] feat: Increase code blob bomb limit on compression Signed-off-by: Maksim Dimitrov --- src/util.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util.rs b/src/util.rs index c8e34e9..358945a 100644 --- a/src/util.rs +++ b/src/util.rs @@ -4,10 +4,11 @@ use std::io::Write; use std::path::{Path, PathBuf}; use itertools::Itertools; -use sp_maybe_compressed_blob::{compress, decompress, CODE_BLOB_BOMB_LIMIT}; +use sp_maybe_compressed_blob::{compress, decompress}; use wasm_instrument::parity_wasm::serialize; use wasm_instrument::parity_wasm::{deserialize_buffer, elements::Module}; +const CODE_BLOB_BOMB_LIMIT: usize = 70 * 1024 * 1024; /// # Save bytes to a file in the given path /// It will recursively create parent directories if needed, open and write to the file ///