Limit CPI instruction size (bp #14317) (#14354)

* Limit CPI instruction size (#14317)

(cherry picked from commit 5524938a50)

# Conflicts:
#	programs/bpf_loader/src/syscalls.rs
#	sdk/src/feature_set.rs

* resolve conflicts

Co-authored-by: Jack May <jack@solana.com>
This commit is contained in:
mergify[bot]
2020-12-30 20:23:52 +00:00
committed by GitHub
parent cfb28a1b2e
commit b88c56cd36
7 changed files with 162 additions and 5 deletions

View File

@@ -935,6 +935,7 @@ mod tests {
max_call_depth: 20,
stack_frame_size: 4096,
log_pubkey_units: 100,
max_cpi_instruction_size: usize::MAX,
},
Rc::new(RefCell::new(Executors::default())),
None,