Skip to content

Commit a16d1a6

Browse files
committed
PDFBOX-6035: prevent infinite loop
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1927178 13f79535-47bb-0310-9956-ffa450edef68
1 parent 7749ca4 commit a16d1a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/PDShadingType4.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ List<ShadedTriangle> collectTriangles(AffineTransform xform, Matrix matrix)
174174
lastIndex = list.size() - 1;
175175
if (lastIndex < 0)
176176
{
177-
LOG.error("broken data stream: {}", list.size());
177+
LOG.error("broken data stream: {}, aborting", list.size());
178+
eof = true;
178179
}
179180
else
180181
{

0 commit comments

Comments
 (0)