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

Init padding fields in libbpf_sys types #742

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

EHfive
Copy link
Contributor

@EHfive EHfive commented Mar 26, 2024

libbpf-sys structs might have additional padding fields on some 32-bit platform(like arm32, mips32) when using bindgen, initialize all fileds of libbpf structs with ...Default.default().

libbpf-sys structs might have additional padding fields on some 32-bit
platform(like arm32, mips32) when using bindgen, initialize all fileds
of libbpf structs with `...Default.default()`.
Copy link
Collaborator

@danielocfb danielocfb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@danielocfb danielocfb merged commit 41b5903 into libbpf:master Mar 26, 2024
12 checks passed
danielocfb pushed a commit that referenced this pull request Mar 26, 2024
Add a CHANGELOG entry for #742, which fixed potentially missing padding
byte initialization.

Signed-off-by: Daniel Müller <deso@posteo.net>
@EHfive EHfive deleted the init-padding branch March 26, 2024 16:44
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.

2 participants