Skip to content

Commit

Permalink
feat: Increase code blob bomb limit on compression
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Dimitrov <[email protected]>
  • Loading branch information
dimitrovmaksim committed Aug 31, 2023
1 parent ab1c5c7 commit 0011c10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
///
Expand Down

0 comments on commit 0011c10

Please sign in to comment.