[poppler] poppler/qt4/src: Makefile.am, 1.1, 1.2 poppler-fontinfo.cc, NONE, 1.1 poppler-qt4.h, 1.12, 1.13 poppler-textbox.cc, NONE, 1.1

Wilfried Huss Wilfried.Huss at gmx.at
Sun Dec 4 03:26:02 PST 2005


Am Sunday, 4. December 2005 11:09 schrieb Brad Hards:
> On Sunday 04 December 2005 09:20 am, Albert Astals Cid wrote:
> > Update of /cvs/poppler/poppler/qt4/src
> > In directory gabe:/tmp/cvs-serv8057/qt4/src
> >
> > Modified Files:
> > 	Makefile.am poppler-qt4.h
> > Added Files:
> > 	poppler-fontinfo.cc poppler-textbox.cc
> > Log Message:
> >  * qt4/src/poppler-qt4.h:
> >  * qt4/src/poppler-fontinfo.cc:
> >  * qt4/src/poppler-textbox.cc: Remove implementation of that classes from
> > the header, use pimpl
> 
> Albert,
> 
> I think that this change is broken. I'm getting segfaults in the test apps.
> 
> I've committed a unit test that shows the problem. Do make check.
> 
> I'd really like to see this fixed before our release. Otherwise this release 
> is going to be unusable for Qt4.

It also crashes for Qt3. The problem is the missing copy-constructor in the
FontInfo class. When put into the QValueList, the FontInfoData* becomes
a dangling pointer.

The attached patch fixes this. I haven't looked at the Qt4 code, but the problem
is probably the same.

Greetings,
Wilfried.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: poppler-qt-fonts-crash.patch
Type: text/x-diff
Size: 1107 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/poppler/attachments/20051204/03925cdf/poppler-qt-fonts-crash.bin


More information about the poppler mailing list