fn check_imm_shift(insn: &ebpf::Insn, insn_ptr: usize) -> Result<(), VerifierError> {
    if insn.imm < 0 || insn.imm as u64 >= 64 {
        return Err(VerifierError::ShiftWithOverflow(insn_ptr));
    }
    Ok(())
}
/// Check that the imm is a valid shift operand
Check that the imm is a valid shift operand
Check that the imm is a valid shift operand
fn check_imm_shift(insn: &ebpf::Insn, insn_ptr: usize) -> Result<(), VerifierError> {
    if insn.imm < 0 || insn.imm as u64 >= 64 {
        return Err(VerifierError::ShiftWithOverflow(insn_ptr));
    }
    Ok(())
}
fn check_imm_shift ( insn : & ebpf :: Insn , insn_ptr : usize ) -> Result < ( ) , VerifierError > { if insn . imm < 0 || insn . imm as u64 >= 64 { return Err ( VerifierError :: ShiftWithOverflow ( insn_ptr ) ) ; } Ok ( ( ) ) }
Check that the imm is a valid shift operand
Check that the imm is a valid shift operand
insn
&ebpf::Insn
insn_ptr
usize