]> granicus.if.org Git - libjpeg-turbo/commitdiff
TJExample: Fix array index OOB w/ 4:1:1 JPEG input
authorDRC <information@libjpeg-turbo.org>
Sat, 18 Nov 2017 00:45:08 +0000 (18:45 -0600)
committerDRC <information@libjpeg-turbo.org>
Sat, 18 Nov 2017 00:45:08 +0000 (18:45 -0600)
ChangeLog.md
java/TJExample.java

index 7aa507e758862affed811179238f276875c030fc..d6299f119118e0ae1ae8ec32b5583e49f917b52b 100644 (file)
@@ -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
 =====
index 97d3d758e4cfc51bec9ba2bb897d48287c377b85..835a5b97375168638028e6e6abfed1afb4d1f8f6 100644 (file)
@@ -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) {