commit | b4e5a4bffda0d5dd79c87c66f28a5fac87182e30 | [log] [tgz] |
---|---|---|
author | Michael S. Tsirkin <mst@redhat.com> | Mon Mar 10 21:30:16 2014 +0200 |
committer | Michael S. Tsirkin <mst@redhat.com> | Tue Mar 11 13:27:27 2014 +0200 |
tree | 21432659bdc387aa6086f53e7bb5843dad482489 | |
parent | 263cf4367fd86dc0e15beebe65919cd50501844d [diff] |
acpi-build: don't access unaligned addresses casting an unaligned address to e.g. uint32_t can trigger undefined behaviour in C. Replace cast + assignment with memcpy. Reported-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>