Skip to content

Commit 0011c10

Browse files
feat: Increase code blob bomb limit on compression
Signed-off-by: Maksim Dimitrov <dimitrov.maksim@gmail.com>
1 parent ab1c5c7 commit 0011c10

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/util.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ use std::io::Write;
44
use std::path::{Path, PathBuf};
55

66
use itertools::Itertools;
7-
use sp_maybe_compressed_blob::{compress, decompress, CODE_BLOB_BOMB_LIMIT};
7+
use sp_maybe_compressed_blob::{compress, decompress};
88
use wasm_instrument::parity_wasm::serialize;
99
use wasm_instrument::parity_wasm::{deserialize_buffer, elements::Module};
1010

11+
const CODE_BLOB_BOMB_LIMIT: usize = 70 * 1024 * 1024;
1112
/// # Save bytes to a file in the given path
1213
/// It will recursively create parent directories if needed, open and write to the file
1314
///

0 commit comments

Comments
 (0)