]> Git Repo - qemu.git/commit - hw/i386/acpi-build.c
acpi-build: don't access unaligned addresses
authorMichael S. Tsirkin <[email protected]>
Mon, 10 Mar 2014 19:30:16 +0000 (21:30 +0200)
committerMichael S. Tsirkin <[email protected]>
Tue, 11 Mar 2014 11:27:27 +0000 (13:27 +0200)
commitb4e5a4bffda0d5dd79c87c66f28a5fac87182e30
tree21432659bdc387aa6086f53e7bb5843dad482489
parent263cf4367fd86dc0e15beebe65919cd50501844d
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 <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
hw/i386/acpi-build.c
This page took 0.024772 seconds and 4 git commands to generate.