pic: Fix Invalid-enum-value undefined behaviour
ClosedPublic

Authored by aacid on Dec 12 2019, 10:28 PM.

Details

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

Diff Detail

Repository
R287 KImageFormats
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 19769
Build 19787: arc lint + arc unit
aacid created this revision.Dec 12 2019, 10:28 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptDec 12 2019, 10:28 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
aacid requested review of this revision.Dec 12 2019, 10:28 PM
dfaure accepted this revision.Dec 14 2019, 11:45 AM
dfaure added a subscriber: dfaure.

Interesting case of "type safety being worse" ;-)

This revision is now accepted and ready to land.Dec 14 2019, 11:45 AM
aacid closed this revision.Dec 14 2019, 8:05 PM