From: DRC Date: Sat, 18 Nov 2017 00:45:08 +0000 (-0600) Subject: TJExample: Fix array index OOB w/ 4:1:1 JPEG input X-Git-Tag: 1.5.3~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=19b393b62422c97d97de4a5f2943d2cf4dc44120;p=libjpeg-turbo TJExample: Fix array index OOB w/ 4:1:1 JPEG input --- diff --git a/ChangeLog.md b/ChangeLog.md index 7aa507e..d6299f1 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -28,6 +28,10 @@ ignoring typos. 6. Fixed an access violation in tjbench.exe (Windows) that occurred when the program was used to decompress an existing JPEG image. +7. Fixed an ArrayIndexOutOfBoundsException in the TJExample Java program that +occurred when attempting to decompress a JPEG image that had been compressed +with 4:1:1 chrominance subsampling. + 1.5.2 ===== diff --git a/java/TJExample.java b/java/TJExample.java index 97d3d75..835a5b9 100644 --- a/java/TJExample.java +++ b/java/TJExample.java @@ -95,7 +95,7 @@ public class TJExample implements TJCustomFilter { } private static final String[] sampName = { - "4:4:4", "4:2:2", "4:2:0", "Grayscale", "4:4:0" + "4:4:4", "4:2:2", "4:2:0", "Grayscale", "4:4:0", "4:1:1" }; public static void main(String[] argv) {