Please find attached a sample PDF demonstrating the problem.

It was produced by pdflatex on this file:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% -*- compile-command: "pdflatex t1-test && evince t1-test.pdf" -*-
\documentclass[12pt,a4paper]{article}

% \usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

\begin{document}

Just a little test:

Try to select some text in evince!

\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


** Attachment added: "sample pdf"
   
https://bugs.launchpad.net/ubuntu/+source/poppler/+bug/1855596/+attachment/5311733/+files/t1-test.pdf

-- 
You received this bug notification because you are a member of Desktop
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:
  Confirmed

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/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to