VirusTotal / yara

The pattern matching swiss knife
https://virustotal.github.io/yara/
BSD 3-Clause "New" or "Revised" License
8.13k stars 1.42k forks source link

fix: ensure all notebook allocations are 8-byte aligned #1930

Closed vthib closed 1 year ago

vthib commented 1 year ago

Add a custom align directive on the data field in YR_NOTEBOOK_PAGE. This ensures the field is 8-byte aligned, and thus all allocations are 8-byte aligned.

Technically YR_ALIGN only works if the provided alignment is not bigger than the max alignment, so i'm not sure whether this fixes the bug everywhere.