Bug #87954

Division by zero in GraphicalFunctions class when image is scaled but input dimensions are zero

Added by Claus Due about 1 month ago. Updated about 1 month ago.

Status:
Under Review
Priority:
Must have
Assignee:
-
Category:
Image Generation / GIFBUILDER
Target version:
-
Start date:
2019-03-19
Due date:
% Done:

0%

TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The method which scales images lacks guard clauses to protect against division by zero if, for whatever reason (getimagesize return value, improper configuration for desired width/height, etc.) the input dimensions are zero.

History

#1 Updated by Gerrit Code Review about 1 month ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60299

Also available in: Atom PDF