diff options
author | Hans de Goede <hdegoede@redhat.com> | 2013-01-10 23:30:34 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2013-01-15 14:30:59 +0100 |
commit | 50efe1e48d2fcf6a2f12c933ce29e73b6985f599 (patch) | |
tree | 7d496dbe5b3099f67e0c1bf3a93c2b6ed169c579 /spice-common | |
parent | d2e1f939fec9b4d852a009cc55c4bbb3d2a94d3b (diff) | |
download | spice-50efe1e48d2fcf6a2f12c933ce29e73b6985f599.tar.gz spice-50efe1e48d2fcf6a2f12c933ce29e73b6985f599.tar.xz spice-50efe1e48d2fcf6a2f12c933ce29e73b6985f599.zip |
worker_update_monitors_config: Drop bogus real_count accounting
1) This does not buy us much, as red_marshall_monitors_config() also
removes 0x0 sized monitors and does a much better job at it
(also removing intermediate ones, not only tailing ones)
2) The code is wrong, as it allocs space for real_count heads, where
real_count always <= monitors_config->count and then stores
monitors_config->count in worker->monitors_config->count, causing
red_marshall_monitors_config to potentially walk
worker->monitors_config->heads past its boundaries.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'spice-common')
0 files changed, 0 insertions, 0 deletions