Skip to content

Comments

btf: fix panic when copying nil Type#1521

Merged
lmb merged 1 commit intocilium:mainfrom
lmb:btf-copy-nil-type
Jul 23, 2024
Merged

btf: fix panic when copying nil Type#1521
lmb merged 1 commit intocilium:mainfrom
lmb:btf-copy-nil-type

Conversation

@lmb
Copy link
Contributor

@lmb lmb commented Jul 23, 2024

Copying a nil Type panics since we unconditionally invoke Type.copy(). Fix this and adjust the tests.

Copying a nil Type panics since we unconditionally invoke Type.copy().
Fix this and adjust the tests.

Signed-off-by: Lorenz Bauer <[email protected]>
@lmb lmb requested review from a team and dylandreimerink as code owners July 23, 2024 10:45
@lmb lmb merged commit b689d28 into cilium:main Jul 23, 2024
@lmb lmb deleted the btf-copy-nil-type branch July 23, 2024 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants