Summary: | cairo crashes if I open a gaim.desktop in gvim | ||
---|---|---|---|
Product: | cairo | Reporter: | SungHyun Nam <goweol> |
Component: | freetype font backend | Assignee: | David Turner <david> |
Status: | RESOLVED FIXED | QA Contact: | cairo-bugs mailing list <cairo-bugs> |
Severity: | normal | ||
Priority: | medium | Keywords: | have-backtrace |
Version: | 1.5.1 | ||
Hardware: | x86 (IA32) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | Special case zero-sized bitmaps. |
Description
SungHyun Nam
2007-09-04 23:58:34 UTC
Created attachment 11423 [details] [review] Special case zero-sized bitmaps. This hides the FPE in the malloc macro, but it neatly avoids the malloc(0). I verified the patch in Comment #1. Indeed it avoids the crash. commit d62f8861689d8b9a9a837043fb78813f0407abd4 Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Wed Sep 5 08:07:41 2007 +0100 [cairo-ft-font] Early detection of a zero sized bitmap. Under rare circumstances we may need to extract a surface that represents a bitmap with width==0 and rows==0. Detect this case at the start and simply return a zero-sized surface. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=12284. |
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.