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
Touch seeded packages, which is subscribed to poppler in Ubuntu.
https://bugs.launchpad.net/bugs/1855596

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

Status in poppler package in Ubuntu:
  New

Bug description:
  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

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to