EdisonWangB / pcmanx-gtk2

Automatically exported from code.google.com/p/pcmanx-gtk2
GNU General Public License v2.0
0 stars 0 forks source link

Version 1.2, segmentation fault in XftCharExists() #70

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Start pcmanx-gtk2, go to ptt.cc, and navigate to article #1HB5bkgC of board 
TigerBlue
2. Go to the end of the article

What is the expected output? What do you see instead?
A segmentation fault occurred.

What version of the product are you using? On what operating system?
pcmanx-gtk2 version 1.2, OS is ubuntu 12.04 with libXft 2.2.0

Please provide any additional information below.
The backtrace output of gdb are: 
#0  XftCharExists (dpy=0x76d880, pub=0x0, ucs4=63269) at 
    ../../src/xftglyphs.c:836
#1  0x00000000004346ef in CFontConfig::SearchFontFor (this=0xa377a0,
    ucs4=63269) at cfontconfig.cpp:120
#2  0x0000000000431538 in CTermView::DrawChar (this=0x9c9e30, row=
    <optimized out>, col=<optimized out>) at termview.cpp:557
    (...#3 CTermData::DoUpdateDisplay() to #10 main() omitted...)

In CFontConfig::SearchFontFor(), font returned by XftFontOpen() are not checked 
before passing to XftCharExists(). If I add some codes to check (*it)->font, 
everything goes well. 

Original issue reported on code.google.com by yan12...@gmail.com on 2 Mar 2013 at 1:06

GoogleCodeExporter commented 8 years ago
This is a bug of libXft.
There is nothing to do in pcmanx-gtk2.

Original comment by fourdollars on 18 Nov 2014 at 2:35

GoogleCodeExporter commented 8 years ago
Well, the problem does not exist anymore. Maybe ptt or libXft is updated.

Currently I use libXft 2.3.2 with latest pcmanx-gtk2

Original comment by yan12...@gmail.com on 18 Nov 2014 at 8:45