forked from cilium/ebpf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
btf: account for split BTF in loadRawSpec
The calculation for the first type id assumes that base.firstTypeID is zero. This is only true if base wasn't parsed from split BTF itself. Refuse split BTF as base but use base.lastTypeID as a defensive measure. Signed-off-by: Lorenz Bauer <[email protected]>
- Loading branch information
Showing
1 changed file
with
24 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters