Control: retitle -1 xpdf: segmentation fault in case of existing Xpdf*font X 
resource

On 2021-10-19 14:49:40 +0200, Vincent Lefevre wrote:
> When an incorrect Xpdf*font X resource is used, xpdf segfaults.

Actually it doesn't even need to be incorrect...

> For instance, I have the XAPPLRESDIR environment variable set to
> $HOME/.app-defaults, and in this directory, if the "Xpdf" file
> contains
> 
> Xpdf*font: foo
> 
> I get
> 
> $ xpdf
> Warning: Cannot convert string "foo" to type FontStruct
> Segmentation fault (core dumped)

And if it has

Xpdf*font: fixed

I get

$ xpdf
Segmentation fault (core dumped)

The warning has disappeared, so that I assume that "fixed" is valid
and corresponds to an existing font. But I still get the segfault.

Note: I don't know what it intends to do. Just testing...
If this is the way to select the font for the interface,
this bug is really annoying.

-- 
Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Reply via email to