]> git.proxmox.com Git - mirror_qemu.git/commit
hw/net/stellaris_enet: Convert to vmstate
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 13 May 2014 15:09:38 +0000 (16:09 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 13 May 2014 15:09:38 +0000 (16:09 +0100)
commit2e1198672759eda6e122ff38fcf6df06f27e0fe2
tree813ce515fb6cd5709191324acffa3a43e740a4b6
parent889ac2a32fd803f7222524d8f56aded1c3cbad3c
hw/net/stellaris_enet: Convert to vmstate

Convert this device to use vmstate for its save/load, including
providing a post_load function that sanitizes inbound data to
avoid possible buffer overflows if it is malicious.

The sanitizing fixes CVE-2013-4532 (though nobody should be
relying on the security properties of most of the unmaintained
ARM board models anyway, and migration doesn't actually
work on this board due to issues in other device models).

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
hw/net/stellaris_enet.c