[Patch] Segmentation fault when accessing xlib backend from different endian systems
Submitted by Wolfgang Meyer
Assigned to Chris Wilson @ickle
Description
Created attachment 77856 Proposed patch to the bug
Accessing the cairo xlib backend via X11 forwarding on (big endian) HP-UX from a little endian system leads to a segmentation fault.
The crash occurs in the _cairo_xlib_surface_add_glyph function. At line 1321 if c is zero an infinite loop causes the segmentation fault.
The attached patch seems to prevent the crash.
Attachment 77856, "Proposed patch to the bug":
file_63461.txt
Version: 1.12.14