solana-labs / rbpf

Rust virtual machine and JIT compiler for eBPF programs
Apache License 2.0
277 stars 169 forks source link

Fix - JIT randomized start padding length #556

Closed Lichtso closed 6 months ago

Lichtso commented 6 months ago

Currently the randomized start padding can get ridiculously long if noop_instruction_rate is configured ridiculously high. Instead, it should just be a small constant for a maximum length.