Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: avoid unchecked nullptr deref on invalid lcms transform
On invalid data the requested transform from lcms may return nun successfully. Hence we need to check the return value and early the function to avoid a segfault. To distinguish the concrete error, a new error code (45) has been introduced. Signed-off-by: Levente Polyak <levente@leventepolyak.net>
- Loading branch information
Showing
3 changed files
with
8 additions
and
0 deletions.
There are no files selected for viewing
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
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
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