Skip to content
Permalink
Browse files Browse the repository at this point in the history
Fix a number-up crash bug (Issue #413)
  • Loading branch information
michaelrsweet committed Apr 1, 2021
1 parent 369b2ea commit 6e8a955
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGES.md
@@ -1,7 +1,8 @@
# Changes in HTMLDOC v1.9.12

- Fixed a crash bug with "data:" URIs and EPUB output (Issue #410)
- Fixed JPEG error handling (Issue #415)
- Fixed a number-up crash bug (Issue #413)
- Fixed JPEG error handling (Issue #414, Issue #415)
- Fixed crash bugs with bogus table attributes (Issue #416, Issue #417)
- Fixed a crash bug with malformed URIs (Issue #418)
- Fixed a crash bug with malformed GIF files (Issue #423)
Expand Down
2 changes: 1 addition & 1 deletion htmldoc/ps-pdf.cxx
Expand Up @@ -1318,7 +1318,7 @@ pspdf_prepare_outpages()
chapter_outstarts[c] = num_outpages;

for (i = chapter_starts[c], j = 0, nup = -1, page = pages + i;
i <= chapter_ends[c];
i <= chapter_ends[c] && num_outpages < num_pages;
i ++, page ++)
{
if (nup != page->nup)
Expand Down

0 comments on commit 6e8a955

Please sign in to comment.