Skip to content

Commit

Permalink
PDFBOX-5906: ignore isolated +
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1921994 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
THausherr committed Nov 21, 2024
1 parent 3ce75e4 commit 5f94129
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,14 @@ else if( next.equals( "false" ) )
dotNotRead = false;
}
}
return COSNumber.get(buf.toString());
String s = buf.toString();
if ("+".equals(s))
{
// PDFBOX-5906
LOG.warn("isolated '+' is ignored");
return COSNull.NULL;
}
return COSNumber.get(s);
case 'B':
String nextOperator = readString();
Operator beginImageOP = Operator.getOperator(nextOperator);
Expand Down

0 comments on commit 5f94129

Please sign in to comment.