Public bug reported:

When viewing a certain PDF (which I unfortunately can't share) using
evince, a see a crash in libpoppler90. It's a NULL pointer dereference
in TextSelectionPainter::hasGlyphLessFont(), because in this certain
PDF, for whatever reason, sel->word->getFontName(0) may return NULL.

Attached you'll find a proposed patch increasing the robustness in this
case.

Cheers,
Enrik

** Affects: poppler (Ubuntu)
     Importance: Undecided
         Status: New

** Patch added: "Fixes a possible NULL ptr dereference in 
TextSelectionPainter::hasGlyphLessFont()"
   
https://bugs.launchpad.net/bugs/1855596/+attachment/5310742/+files/fix_null_ptr_derefence_in_TextSelectionPainter_hasGlyphLessFont.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1855596

Title:
  NULL ptr dereference in TextSelectionPainter::hasGlyphLessFont() with
  certain PDF

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/poppler/+bug/1855596/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to