Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 05 Aug 2022 18:26:10 +0000
From:      bugzilla-noreply@freebsd.org
To:        java@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 265663] java/openjdk17: problem with jpeg-turbo?
Message-ID:  <bug-265663-8522-vYa2fPN0Xe@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-265663-8522@https.bugs.freebsd.org/bugzilla/>
References:  <bug-265663-8522@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-java (Nobody)
<java@FreeBSD.org> for maintainer-feedback:
Bug 265663: java/openjdk17: problem with jpeg-turbo?
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265663



--- Description ---
I recently upgraded from openjdk-8 to openjdk-17, and noticed that JPEG fil=
es
that were previously opening succesfully were now failing with:

```
Exception in thread "main" javax.imageio.IIOException: Bogus virtual array
access
	at
java.desktop/com.sun.imageio.plugins.jpeg.JPEGImageReader.readImage(Native
Method)
	at
java.desktop/com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(Unkn=
own
Source)
	at
java.desktop/com.sun.imageio.plugins.jpeg.JPEGImageReader.read(Unknown Sour=
ce)
	at java.desktop/javax.imageio.ImageIO.read(Unknown Source)
	at java.desktop/javax.imageio.ImageIO.read(Unknown Source)
	at ImageExceptionMain.main(ImageExceptionMain.java:10)

```

I could reproduce this as well on the default Arch Linux openjdk17, and cou=
ld
reproduce it as well on openjdk 11.

Both appear to use the system libjpeg (jpeg-turbo) instead of the bundled o=
ne.
If I change the port Makefile and remove:
```
    --with-libjpeg=3Dsystem
```
, (implying `--with-libjpeg=3Dbundled`), then everything works.

I could not find a jpeg-turbo binary that shows a problem, nor get any other
image program to complain about the (attached) file and suggest it is someh=
ow
invalid.

I have attached a source file and image file (no affiliation to whatever it=
 is
saying) to reproduce this issue.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-265663-8522-vYa2fPN0Xe>