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

Initialize dmac array to nulls #5538

Merged
merged 3 commits into from
Dec 10, 2024
Merged

Initialize dmac array to nulls #5538

merged 3 commits into from
Dec 10, 2024

Conversation

jp-bennett
Copy link
Collaborator

I've had some crashing on runs where there is no mac address source. It seems to be in the printBytes() function, which really confuses me, but making sure to initialize to nulls here is an obvious step.

I don't fully understand why, but I've seen segfaults when the dmac value isn't initialized to 0s.
@jp-bennett
Copy link
Collaborator Author

Oh, duh, console hasn't been initialized. Shout-out to allanmac on discord for pointing this out, as I'd forgotten it was a thing.

@jp-bennett jp-bennett merged commit 0e3dae4 into master Dec 10, 2024
48 checks passed
@thebentern thebentern deleted the no-crash branch December 10, 2024 12:50
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.

1 participant