Re: [Qemu-devel] [PATCH v3 7/7] hw/net/stellaris_enet: Convert to vmstate

2014-05-06 Thread Peter Maydell
On 6 May 2014 12:53, Dr. David Alan Gilbert wrote: > * Peter Maydell (peter.mayd...@linaro.org) wrote: >> +{ >> +stellaris_enet_state *s = opaque; >> +int i; >> + >> +/* Sanitize inbound state. Note that next_packet is an index but >> + * np is a size; hence their valid upper bound

Re: [Qemu-devel] [PATCH v3 7/7] hw/net/stellaris_enet: Convert to vmstate

2014-05-06 Thread Dr. David Alan Gilbert
* Peter Maydell (peter.mayd...@linaro.org) wrote: > 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

[Qemu-devel] [PATCH v3 7/7] hw/net/stellaris_enet: Convert to vmstate

2014-04-28 Thread Peter Maydell
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 unmaintain