Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Fixes #264.
The JP2 decoder was allowing the decoding of a code stream to be attempted when the stream has inconsistent values for the number of components and/or the component types. For such invalid streams, only a warning would be issued and decoding would proceed. This is dangerous, however, as it can lead to many unexpected paths through the code, which in some cases have been demonstrated to result in security vulnerabilities. This code change makes decoding of these types invalid code streams a hard error.
- Loading branch information
Showing
2 changed files
with
10 additions
and
6 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters