The file which causes crashes dropbox.com/s/v6kiu69dqc56ptc/doc1.pdf

01.05.2016 02:56, Matthew Brincke пишет:
> Hi,
>
> please find my proposed fix attached, review it
> and if you are a PoDoFo committer, please accept
> and commit it (filename gives hint for message)
> separately to to the public repository.
>
>  I have added reference counting to avoid deleting
> objects which are still in the data structure.
>
>
> Best regards, mabri
>
>
> ________________________________
> From: Yan Pas <yanp.b...@gmail.com>
> To: podofo-users@lists.sourceforge.net
> Sent: Friday, 29 April 2016, 21:25 UTC
> Subject: [Podofo-users] Outline erase method causes segmentation fault
>
>
>
> Hi!
>
> I can't manage to get Erase method to work. I have no permission to
use the bug tracker on SF (not enough rights), so I post an e-mail here.
> Here is some sample code:
>
> PdfMemDocument doc;
> const PdfMemDocument indoc1("doc1.pdf");
> const PdfMemDocument indoc2("doc2.pdf");
> PdfOutlines * outout = doc.GetOutlines();
> outout->CreateRoot("doc1.pdf");
> PdfOutlineItem* root = doc.GetOutlines()->First();
> doc.InsertPages(indoc1,0,3);
> root->SetDestination(PdfDestination(doc.GetPage(0)));
> auto nextroot = root->Next();
> if (nextroot) root->InsertChild(nextroot);
> auto x = doc.GetOutlines()->First()->Next();
> x->Erase();
>
> doc1 has an outline with one item. Debugger shows that x is not NULL
and seg fault appears after x->Erase(). Is it a bug or what?
>
> Kind regards,
> Yan
> _______________________________________________
> Podofo-users mailing list
> Podofo-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/podofo-users



------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to