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:   [Bug 265663] java/openjdk17: problem with jpeg-turbo?
Message-ID:  <bug-265663-8522@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265663

            Bug ID: 265663
           Summary: java/openjdk17: problem with jpeg-turbo?
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: java@FreeBSD.org
          Reporter: dennis.noordsij@alumni.helsinki.fi
          Assignee: java@FreeBSD.org
             Flags: maintainer-feedback?(java@FreeBSD.org)

Created attachment 235708
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D235708&action=
=3Dedit
Example jpeg that demonstrates the issue

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.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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