Skip to content

1.9.20 segfaults when passed data on stdin #536

@pmack

Description

@pmack

Hi,

1.9.20, compiled from source (tested on RHEL 8 and Fedora 40) segfaults when passed HTML data via standard input. A minimal repro:

[peter@recess htmldoc-1.9.20]$ ./htmldoc/htmldoc --quiet --webpage -t pdf -f output.pdf - <<< '<html></html>'
Segmentation fault (core dumped)
[peter@recess htmldoc-1.9.20]$

This works fine on all previous releases.

It does not have a problem reading the same data from disk:

[peter@recess htmldoc-1.9.20]$ rm -f input.html output.pdf
[peter@recess htmldoc-1.9.20]$ echo '<html></html' > input.html
[peter@recess htmldoc-1.9.20]$ ./htmldoc/htmldoc --quiet --webpage -t pdf -f output.pdf input.html
[peter@recess htmldoc-1.9.20]$ file output.pdf
output.pdf: PDF document, version 1.4
[peter@recess htmldoc-1.9.20]$

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions