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

cli_check_mydoom_log: Avoid unaligned access. #1293

Merged
merged 1 commit into from
Jul 22, 2024

Conversation

sebastianas
Copy link
Contributor

fmap_need_off_once() may return an unaligned pointer. This in return leads to an unaligned access during the load of the uint32_t variables loading to failures on architectures not supporting unaligned access.

This was reported to the Debian BTS as #1073128.

[bigeasy: Commit message, reworked the patch a bit].

Link: https://bugs.debian.org/1073128

@sebastianas sebastianas force-pushed the unaligned branch 3 times, most recently from 7510b50 to 49901e8 Compare June 28, 2024 18:20
@sebastianas
Copy link
Contributor Author

This just built in Debian and it also fixed a long standing issue on sparc64 which existed since the 1.0.0 version.

@LocutusOfBorg
Copy link

thanks for the nice and quick fix!

fmap_need_off_once() may return an unaligned pointer. This in return
leads to an unaligned access during the load of the uint32_t variables
loading to failures on architectures not supporting unaligned access.

This was reported to the Debian BTS as #1073128.

[bigeasy: Commit message, reworked the patch a bit].

Link: https://bugs.debian.org/1073128
Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
@micahsnyder micahsnyder merged commit 652d5f6 into Cisco-Talos:main Jul 22, 2024
23 checks passed
@micahsnyder micahsnyder added the 🍒cherry-pick-candidate A PR that should be backported once approved. label Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒cherry-pick-candidate A PR that should be backported once approved.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants