pic: Fix Invalid-enum-value undefined behaviour

Authored by aacid on Dec 14 2019, 8:04 PM.

Description

pic: Fix Invalid-enum-value undefined behaviour

Summary:
Instead of directly casting the quint8 to PicChannelEncoding we just store the quint8
and compare it to the possible PicChannelEncoding values when needed

oss-fuzz/19344

Reviewers: dfaure

Reviewed By: dfaure

Subscribers: dfaure, security-team, kde-frameworks-devel

Tags: Frameworks

Differential Revision: https://phabricator.kde.org/D25937

Details

Committed
aacidDec 14 2019, 8:05 PM
Reviewer
dfaure
Differential Revision
D25937: pic: Fix Invalid-enum-value undefined behaviour
Parents
R287:69effbf9f593: GIT_SILENT Bump KF5 deprecation level to 5.65
Branches
Unknown
Tags
Unknown