Bug 103515 - libcairo crash
Summary: libcairo crash
Alias: None
Product: cairo
Classification: Unclassified
Component: xlib backend (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Chris Wilson
QA Contact: cairo-bugs mailing list
Depends on:
Reported: 2017-10-30 12:40 UTC by jg
Modified: 2018-08-25 14:03 UTC (History)
0 users

See Also:
i915 platform:
i915 features:

stack (81.98 KB, image/png)
2017-10-30 12:41 UTC, jg
stack 2 (191.43 KB, image/png)
2017-10-30 12:41 UTC, jg

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]
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.