clamav icon indicating copy to clipboard operation
clamav copied to clipboard

cli_check_mydoom_log: Avoid unaligned access.

Open sebastianas opened this issue 1 year ago • 2 comments

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 avatar Jun 27 '24 19:06 sebastianas

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

sebastianas avatar Jun 28 '24 21:06 sebastianas

thanks for the nice and quick fix!

LocutusOfBorg avatar Jul 01 '24 06:07 LocutusOfBorg