]> git.feebdaed.xyz Git - 0xmirror/ebpf.git/commit
btf: don't crash when rebasing empty decoder
authorLorenz Bauer <lmb@isovalent.com>
Wed, 4 Jun 2025 07:54:06 +0000 (08:54 +0100)
committerLorenz Bauer <lmb@users.noreply.github.com>
Mon, 23 Jun 2025 14:18:33 +0000 (15:18 +0100)
commit9b340d1fe76093dded37c64e41c2b86c56eae9a8
tree3b0dd58be738765e12fcfdfcd59d80d0ce2747a4
parent51ab2a455de272c9e1c6cf461cc12a9d7b71a031
btf: don't crash when rebasing empty decoder

Accessing raw[0] is only valid if the length is > 0.

Signed-off-by: Lorenz Bauer <lmb@isovalent.com>
btf/unmarshal.go