Bug 1385225

Summary: Avoid crash on empty clipboard text
Product: Red Hat Enterprise Linux 7 Reporter: Victor Toso <victortoso>
Component: spice-gtkAssignee: Default Assignee for SPICE Bugs <rh-spice-bugs>
Status: CLOSED ERRATA QA Contact: SPICE QE bug list <spice-qe-bugs>
Severity: unspecified Docs Contact:
Priority: high    
Version: 7.3CC: dblechte, djasa, pgrunt, rbalakri, rduda, victortoso
Target Milestone: rcKeywords: Regression, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spice-gtk-0.31-7.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1393046 (view as bug list) Environment:
Last Closed: 2017-08-01 15:04:11 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:
Bug Depends On:    
Bug Blocks: 1393046    

Description Victor Toso 2016-10-15 12:26:07 UTC
Description of problem:

If contents of clipboard cannot be converted to text, spice-gtk could crash. This was introduced at Bug 1348624.

Fix proposed upstream: https://lists.freedesktop.org/archives/spice-devel/2016-October/032694.html

Additional info:

This was first reported on Fedora 25 by abrt: Bug 1384676

Comment 1 Pavel Grunt 2016-10-17 06:47:47 UTC
Hi, what are the steps to reproduce ? Bug 1384676 is in wayland env

Comment 2 Pavel Grunt 2016-10-18 15:13:43 UTC
Ok, it happened to me in Xorg X11 env. But I wasn't doing anything special, just copying a text

Comment 3 Victor Toso 2016-10-18 15:16:05 UTC
Fix is upstream:
03c016bea939ee4a26e90d80fa1012a993a8ea47

Comment 8 errata-xmlrpc 2017-08-01 15:04:11 UTC
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://access.redhat.com/errata/RHBA-2017:1849