[poppler] [Poppler]A bug in poppler-private.cc?

cobra.yu cobra.yu at hyweb.com.tw
Mon Aug 29 08:19:11 PDT 2011


    Take poppler_qt4viewer for example, it creates and checks the "newdoc" before deleting the old "m_doc". That means, count++ before count--.
    But in my application, every PDF document is converted into QImages separately, so count-- happens before count++, and that's the problem.

          Cobra


-----Original message-----
From:Albert Astals Cid <aacid at kde.org>
To:poppler at lists.freedesktop.org
Date:Mon, 29 Aug 2011 10:58:29 +0200
Subject:Re: [poppler] [Poppler]A bug in poppler-private.cc?

A Dilluns, 29 d'agost de 2011, vàreu escriure:
> Dears,
> 
>      V. 0.16.6, but I'm also checking V. 0.17.2 and finding the same code.

I will need a backtrace of your code since globalParams is guaranteed to be 
created after  DocumentData::init which is the first thing that gets done 
while trying to load a document so i can not see at all how your globalParams 
pointer can be invalid.

Albert

> 
>          Cobra
> -----Original message-----
> From:Albert Astals Cid <aacid at kde.org>
> To:cobra.yu at hyweb.com.tw
> Date:Sun, 28 Aug 2011 20:47:37 +0200
> Subject:Re: [poppler] [Poppler]A bug in poppler-private.cc?
> 
> A Divendres, 26 d'agost de 2011, cobra.yu vàreu escriure:
> > Dears,
> > 
> >     No "globalParams=0;" after line 238 of poppler-private.cc could
> >     be a
> > 
> > bug? In my application, I use a loop to load PDF files with some
> > hex-string errors separately. The latter files with errors would
> > confront a "globalParams" that should have been deleted, but kept the
> > old value. And in such case, line 1579 of GlobalParams.cc: "return
> > errQuiet;" would raise an Access Violation Exception. Maybe the
> > addition of "globalParams=0;" after line 238 of poppler-private.cc
> > would be a better way. Any one has also experienced this?
> 
> Which poppler version are you using?
> 
> Albert
> 
> >            Cobra
> > 
> > _______________________________________________
> > poppler mailing list
> > poppler at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/poppler
_______________________________________________
poppler mailing list
poppler at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/poppler


More information about the poppler mailing list