(cherry picked from commit 30ef53cb13
)
Co-authored-by: Jack May <jack@solana.com>
This commit is contained in:
@@ -350,6 +350,15 @@ mod tests {
|
||||
.unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[should_panic(expected = "VerifierError(LDDWCannotBeLast)")]
|
||||
fn test_bpf_loader_check_load_dw() {
|
||||
let prog = &[
|
||||
0x18, 0x00, 0x00, 0x00, 0x88, 0x77, 0x66, 0x55, // first half of lddw
|
||||
];
|
||||
bpf_verifier::check(prog, true).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_bpf_loader_write() {
|
||||
let program_id = solana_sdk::pubkey::new_rand();
|
||||
|
Reference in New Issue
Block a user