Bug 1285469
Summary: | crash in lz_rgb16_decompress when resizing guest monitor to size not fitting to video memory | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | David Jaša <djasa> | ||||
Component: | spice-gtk | Assignee: | Default Assignee for SPICE Bugs <rh-spice-bugs> | ||||
Status: | CLOSED ERRATA | QA Contact: | SPICE QE bug list <spice-qe-bugs> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 7.2 | CC: | cfergeau, dblechte, djasa, pgrunt, rbalakri, rduda, tpelka | ||||
Target Milestone: | rc | ||||||
Target Release: | 7.3 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | spice-gtk-0.26-8.el7 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2016-11-04 01:12:38 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
David Jaša
2015-11-25 16:35:27 UTC
It is most likely the upstream bug https://bugs.freedesktop.org/show_bug.cgi?id=92820 David, can you test it with a different image compression type ? in canvas_base.c line 870 stride is computed right only for 32 bit: stride = (n_comp_pixels / height) * 4; this is causing memory corruption if top_down is false due to if (!top_down) { stride = -stride; decomp_buf = src + stride * (height - 1); I fixed replacing stride = (n_comp_pixels / height) * 4; with stride = pixman_image_get_stride(lz_data->decode_data.out_surface); stride = abs(stride); note that I'm getting some glitches due to the fact that on pixman stride is always a multiple of 4 (but this is probably another issue). Posted a proposed patch at https://lists.freedesktop.org/archives/spice-devel/2016-April/028210.html Accepted patch at https://cgit.freedesktop.org/spice/spice-common/commit/?id=5603961ffae7b8a0160e4d6e29ca506b7c3721d2 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2016-2229.html |