From 61b9253c1ce9f4303890c6fff2a9346cb5b80734 Mon Sep 17 00:00:00 2001 From: Tilman Hausherr Date: Mon, 14 Aug 2023 06:48:55 +0000 Subject: [PATCH] PDFBOX-5653: avoid extreme phase start values that freeze jdk8 git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1911637 13f79535-47bb-0310-9956-ffa450edef68 --- pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java b/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java index 1653e46a1e9..6d747c72663 100644 --- a/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java +++ b/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java @@ -728,6 +728,7 @@ private Stroke getStroke() LOG.warn("Miter limit must be >= 1, value " + miterLimit + " is ignored"); miterLimit = 10; } + phaseStart = Math.max(phaseStart, Short.MAX_VALUE); // PDFBOX-5653 return new BasicStroke(lineWidth, lineCap, lineJoin, miterLimit, dashArray, phaseStart); }