clamav
clamav copied to clipboard
cli_check_mydoom_log: Avoid unaligned access.
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
This just built in Debian and it also fixed a long standing issue on sparc64 which existed since the 1.0.0 version.
thanks for the nice and quick fix!