]> granicus.if.org Git - sysstat/commit
Fix #148: ARM: sadc crashes because of unaligned memory accesses
authorSebastien GODARD <sysstat@users.noreply.github.com>
Mon, 8 May 2017 08:10:22 +0000 (10:10 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Mon, 8 May 2017 08:10:22 +0000 (10:10 +0200)
commit569378eb1a3be23cdb45ac5d39e354683a7748f8
tree5da63509290794c97db9bb82dd1a29eb50009b8c
parenta0b7fc5e1390d0fb0c451dafefeedab67ca5e37e
Fix #148: ARM: sadc crashes because of unaligned memory accesses

Use posix_memalign() with 16 bytes alignment request instead of
realloc() to guarantee 16 byte alignment requested by several
sysstat's structures.

Note: 16 byte alignment is no longer needed by sysstat's
structures. Yet removing the corresponding attributes
(__attribute__ ((aligned (16)))) for example in rd_stats.h
would imply a format change for sar/sadc binary data files.
These attributes will be removed when work is done to make sa binary
datafiles portable (see #135).

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
common.h