[
https://issues.apache.org/jira/browse/PDFBOX-5383?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17500259#comment-17500259
]
Tilman Hausherr commented on PDFBOX-5383:
-----------------------------------------
I could reproduce it with oracle jdk321 (I was using amazon coretto 322).
Here's the code to crash it, which I created based on the PDF:
{code}
BufferedImage bim = new BufferedImage(1000, 1000, BufferedImage.TYPE_INT_RGB);
GeneralPath path = new GeneralPath();
path.moveTo(-66781511.559, -2226.299);
path.curveTo(-66781508.692,-2225.888,-66781505.846,-2225.346,-66781503.029,-2224.675);
Graphics2D g = (Graphics2D) bim.getGraphics();
g.setStroke(new BasicStroke(0.28f, BasicStroke.CAP_BUTT,
BasicStroke.JOIN_MITER, 10, new float[]{5.669f,5.669f}, 0f));
g.draw(path);
{code}
The PDF segment is
{noformat}
0.283 w
0 J
0 j
[ 5.669 5.669 ] 0 d
/GS0 gs
-6.6781512E7 -2226.299 m
-6.6781508E7 -2225.888 -6.6781504E7 -2225.346 -6.6781504E7 -2224.675 c
S
{noformat}
I have submitted a bug report to oracle. It has been assigned the internal
review ID 9072758. It can take a few days until they react. They may not react
at all, but I have a pretty good success rate in getting bug reports accepted.
Do not expect them to fix this within a few days. You should move to amazon
corretto or to jdk11. Sorry for the bad news but thanks for reporting it!
> JAVA program Crashes
> --------------------
>
> Key: PDFBOX-5383
> URL: https://issues.apache.org/jira/browse/PDFBOX-5383
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 2.0.24, 2.0.25
> Reporter: krishna prasad
> Priority: Major
> Attachments: crash.pdf
>
>
> I am trying to convert the PDF into images by using render. It hangs up the
> program.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]