]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/qemu-xen-traditional.git/commit
lm832x: don't overrun file buffer on save/restore
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 4 Nov 2014 11:46:46 +0000 (11:46 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 16 Oct 2015 15:52:06 +0000 (16:52 +0100)
commitfb9ee2e1049f7ca8f597a00360745ead64fd974b
tree23a00a6cc42f74022427199522bf6975cb88918b
parentc615d81a3c0fca9ca4706f6505cc032c737cf0c9
lm832x: don't overrun file buffer on save/restore

Saving and restoring an lm832x record would overrun the pwm.file array
since pwm.file is uint16_t elements and sizeof(pwm.file) twice as many
elements.

To ensure compatibility, padding bytes are added to the record.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Coverity-IDs: 1055728 1055729
hw/lm832x.c