Check.huge.read: def of bend-osdev-bpf@0.1.0.0 Import: import bend-osdev-bpf@0.1.0.0/check.bend as Check Lines 149-157 of bend-osdev-bpf@0.1.0.0/check.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-bpf@0.1.0.0/check.bend&start_line=149&end_line=157 import Base import bend-osdev-bpf@0.1.0.0/insn.bend as I import bend-osdev-bpf@0.1.0.0/validate.bend as V # Untrusted input of 32768 instructions (256 KB): refused by bpf_of_octets # at its default limit (8 * BPF_MAXINSNS bytes) before the rest is read, and, # read with a higher limit, decoded and refused by validation as too long def huge.read(r: Result<&2, &2, I.BpfError, List<&2, I.BpfRaw>>) -> String: match r: case Done{raws}: show_ok(big.prep(V.bpf_prepare(V.bpf_maxinsns(), raws))) case Fail{e}: "error: " ++ I.BpfError.show(e) Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=bend-osdev-bpf@0.1.0.0/check.bend&name=big.prep https://jend.leeeet.dev/definition.txt?path=bend-osdev-bpf@0.1.0.0/check.bend&name=show_ok https://jend.leeeet.dev/definition.txt?path=bend-osdev-bpf@0.1.0.0/insn.bend&name=BpfError https://jend.leeeet.dev/definition.txt?path=bend-osdev-bpf@0.1.0.0/insn.bend&name=BpfError.show https://jend.leeeet.dev/definition.txt?path=bend-osdev-bpf@0.1.0.0/insn.bend&name=BpfRaw https://jend.leeeet.dev/definition.txt?path=bend-osdev-bpf@0.1.0.0/validate.bend&name=bpf_maxinsns https://jend.leeeet.dev/definition.txt?path=bend-osdev-bpf@0.1.0.0/validate.bend&name=bpf_prepare