Package: yara / 3.9.0-1

Metadata

Package Version Patches format
yara 3.9.0-1 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
no unaligned access.patch | (download)

libyara/exec.c | 19 9 + 10 - 0 !
libyara/scan.c | 10 8 + 2 - 0 !
2 files changed, 17 insertions(+), 12 deletions(-)

 use alignment-safe handling

Casting a char* to a uint64_t* is not universally safe due to alignment
constraints on reads on some platforms.  Just use memcpy() instead, which
the compiler should optimize adequately for us.

Also, force alignment of our arena-allocated structures that contain 64-bit
elements.