Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

btf: fix panic when copying nil Type #1521

Merged
merged 1 commit into from
Jul 23, 2024
Merged

Conversation

lmb
Copy link
Collaborator

@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 <lmb@isovalent.com>
@lmb lmb requested review from dylandreimerink and a team as code owners July 23, 2024 10:45
@lmb lmb merged commit b689d28 into cilium:main Jul 23, 2024
17 checks passed
@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