Bug 103515

Summary: libcairo crash
Product: cairo Reporter: jg
Component: xlib backendAssignee: Chris Wilson <chris>
Status: RESOLVED MOVED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: stack
stack 2

Description jg 2017-10-30 12:40:12 UTC
Latest Ubuntu says version 1.14.6-1 

cairo-xlib-surface-shm.c:619 should check for NULL and return an error code.


Gnome Image Viewer is asserting (and then stopping) 3.18.2
because of this code.
Best practice is to check and return an error code so application can handle their issue (that they are calling your API with NULL)
Comment 1 jg 2017-10-30 12:41:05 UTC
The crash is caused by a 14MB panorama JPG, let me know if you would like me to upload it on your server.
Comment 2 jg 2017-10-30 12:41:28 UTC
Created attachment 135163 [details]
stack
Comment 3 jg 2017-10-30 12:41:44 UTC
Created attachment 135164 [details]
stack 2
Comment 4 GitLab Migration User 2018-08-25 14:03:17 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/cairo/cairo/issues/334.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.