Project

General

Profile

Actions

Defect #36452

closed

Infinite loop on PDF export if image included with attributes

Defect #36452: Infinite loop on PDF export if image included with attributes

Added by Alexander Meindl almost 5 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
PDF export
Target version:
Resolution:
Fixed
Affected version:

Description

If an image is included in an issue (or wiki page) and attributes are used for height and width, this causes an infinite loop on PDF export.

Here is an example:

!{height: 501px; width: 916px;}20220110-091538-244.png!

This looks like this is a bug in rbpdf, which can be related with https://github.com/naitoh/rbpdf/issues/62

Tested with:

  • Redmine 4.2.3 and Redmine trunk
  • Ruby 2.7.5

Related issues 2 (1 open — 1 closed)

Related to Redmine - Patch #38272: Update RBPDF to 1.21ClosedGo MAEDAActions
Related to Redmine - Defect #44483: Infinite loop and memory exhaustion on issue PDF export when an image has width/height attributesConfirmedActions

Updated by Alexander Meindl almost 5 years ago Actions #1

The image does not even exist, just this line above is enough to run in an infinite loop on PDF export. No plugins are installed with my tests.

Updated by Go MAEDA almost 5 years ago Actions #2

  • Status changed from New to Confirmed

Updated by Go MAEDA almost 4 years ago Actions #3

Updated by Jun NAITOH almost 4 years ago Actions #4

I fixed it with rbpdf 1.21.0.

The fixed issues is as follows.

Updated by Go MAEDA almost 4 years ago Actions #5

  • Status changed from Confirmed to Closed
  • Assignee set to Go MAEDA
  • Target version set to 4.2.10
  • Resolution set to Fixed

Jun NAITOH wrote:

I fixed it with rbpdf 1.21.0.

The fixed issues is as follows.

Thank you for maintaining RBPDF!

Since RBPDF has been updated in r22102, r22103, and r22104, the issue will be fixed in Redmine 4.2.10 and 5.0.5.

Updated by Go MAEDA 2 months ago Actions #6

  • Related to Defect #44483: Infinite loop and memory exhaustion on issue PDF export when an image has width/height attributes added
Actions

Also available in: PDF Atom