You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does Solana rbpf perform some specific operations on e.g. eBPF ADD ...? As self.reg[dst] = (self.reg[dst] as i32).wrapping_add(insn.imm as i32) as u64 and self.reg[dst] = (self.reg[dst] as u32).wrapping_add(insn.imm as u32) as u64 may have different results.
When Linux eBPF performs type-casting, it always follows a consistent way
Hello,
It looks like there are some inconsistency when Solana rbpf deals with the type-casting using
i32
andu32
. e.g.ebpf::ADD32_IMM
considersdst
andimm
asi32
firstly, then asu64
, whileebpf::OR32_IMM
considersdst
andimm
asu32
first, then asu64
Does Solana rbpf perform some specific operations on e.g. eBPF
ADD ...
? Asself.reg[dst] = (self.reg[dst] as i32).wrapping_add(insn.imm as i32) as u64
andself.reg[dst] = (self.reg[dst] as u32).wrapping_add(insn.imm as u32) as u64
may have different results.When Linux eBPF performs type-casting, it always follows a consistent way
The text was updated successfully, but these errors were encountered: