2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-22 10:58:58 +00:00

Fix fix-qdf for empty streams

This commit is contained in:
Jay Berkenbilt 2020-10-23 04:02:53 -04:00
parent 802de87c30
commit 0dea276997
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2020-10-23 Jay Berkenbilt <ejb@ql.org>
* Bug fix: fix-qdf: properly handle empty streams with ignore
newline.
2020-10-22 Jay Berkenbilt <ejb@ql.org>
* Fix loop detection problem when traversing page thumbnails

View File

@ -294,7 +294,10 @@ QdfFixer::processLines(std::list<std::string>& lines)
{
if (matches(re_ignore_newline))
{
--stream_length;
if (stream_length > 0)
{
--stream_length;
}
}
else if (matches(re_n_0_obj))
{