Skip to content

Commit

Permalink
TJExample: Fix array index OOB w/ 4:1:1 JPEG input
Browse files Browse the repository at this point in the history
  • Loading branch information
dcommander committed Nov 18, 2017
1 parent 9d9d8fe commit 19b393b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
=====
Expand Down
2 changes: 1 addition & 1 deletion java/TJExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ else if (sf.length > 2) {
}

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) {
Expand Down

0 comments on commit 19b393b

Please sign in to comment.