git: openjdk/jdk21u-dev: master: 8351110: ImageIO.write for JPEG can write corrupt JPEG for certain thumbnail dimensions

Paul Hohensee phh at openjdk.org
Mon Nov 24 16:13:37 UTC 2025


Changeset: a9b396f8
Branch: master
Author:    Roland Mesde <mesde at amazon.com>
Committer: Paul Hohensee <phh at openjdk.org>
Date:      2025-11-24 16:12:20 +0000
URL:       https://git.openjdk.org/jdk21u-dev/commit/a9b396f8829fe521d1cc37306aaf52b1674577f9

8351110: ImageIO.write for JPEG can write corrupt JPEG for certain thumbnail dimensions

Backport-of: 60f3d607412dfe289f33dd922dfc1c9ff766810f

! src/java.desktop/share/classes/com/sun/imageio/plugins/jpeg/JFIFMarkerSegment.java
! src/java.desktop/share/classes/com/sun/imageio/plugins/jpeg/MarkerSegment.java
+ test/jdk/javax/imageio/plugins/jpeg/WriteJPEGThumbnailTest.java



More information about the jdk-updates-changes mailing list